14:42:58 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125752 14:42:58 Running as SYSTEM 14:42:58 [EnvInject] - Loading node environment variables. 14:42:58 Building remotely on prd-ubuntu2204-docker-4c-16g-17 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-vanadium 14:42:59 [ssh-agent] Looking for ssh-agent implementation... 14:42:59 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 14:42:59 $ ssh-agent 14:42:59 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXdOPeLh/agent.1550 14:42:59 SSH_AGENT_PID=1552 14:42:59 [ssh-agent] Started. 14:42:59 Running ssh-add (command line suppressed) 14:42:59 Identity added: /w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_4033954829355380552.key (/w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_4033954829355380552.key) 14:42:59 [ssh-agent] Using credentials jenkins (jenkins-ssh) 14:42:59 The recommended git tool is: NONE 14:43:03 using credential jenkins-ssh 14:43:03 Wiping out workspace first. 14:43:03 Cloning the remote Git repository 14:43:03 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 14:43:03 > git init /w/workspace/transportpce-tox-verify-vanadium # timeout=10 14:43:03 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:43:03 > git --version # timeout=10 14:43:03 > git --version # 'git version 2.34.1' 14:43:03 using GIT_SSH to set credentials jenkins-ssh 14:43:03 Verifying host key using known hosts file, will automatically accept unseen keys 14:43:03 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 14:43:08 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:43:08 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 14:43:09 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:43:09 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:43:09 using GIT_SSH to set credentials jenkins-ssh 14:43:09 Verifying host key using known hosts file, will automatically accept unseen keys 14:43:09 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/52/125752/1 # timeout=10 14:43:09 > git rev-parse e0be7933ea89d92f4724cd5d3fa2fac7c18a7c20^{commit} # timeout=10 14:43:09 Checking out Revision e0be7933ea89d92f4724cd5d3fa2fac7c18a7c20 (refs/changes/52/125752/1) 14:43:09 > git config core.sparsecheckout # timeout=10 14:43:09 > git checkout -f e0be7933ea89d92f4724cd5d3fa2fac7c18a7c20 # timeout=10 14:43:10 Commit message: "Prefer obj.sort(Comparator) to Collections.sort()" 14:43:10 > git rev-parse FETCH_HEAD^{commit} # timeout=10 14:43:10 > git rev-list --no-walk 69f0c03c0d32658c94673e92f47da9b36173bf71 # timeout=10 14:43:10 > git remote # timeout=10 14:43:10 > git submodule init # timeout=10 14:43:10 > git submodule sync # timeout=10 14:43:10 > git config --get remote.origin.url # timeout=10 14:43:10 > git submodule init # timeout=10 14:43:10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 14:43:10 ERROR: No submodules found. 14:43:13 provisioning config files... 14:43:13 copy managed file [npmrc] to file:/home/jenkins/.npmrc 14:43:13 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 14:43:13 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins13606913344662036858.sh 14:43:13 ---> python-tools-install.sh 14:43:13 Setup pyenv: 14:43:14 * system (set by /opt/pyenv/version) 14:43:14 * 3.8.20 (set by /opt/pyenv/version) 14:43:14 * 3.9.20 (set by /opt/pyenv/version) 14:43:14 3.10.15 14:43:14 3.11.10 14:43:18 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-pcoK 14:43:18 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 14:43:18 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:43:23 lf-activate-venv(): INFO: Installing additional packages: lftools 14:44:05 lf-activate-venv(): INFO: Adding /tmp/venv-pcoK/bin to PATH 14:44:05 Generating Requirements File 14:44:37 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:37 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 14:44:37 Python 3.11.10 14:44:37 pip 26.2.1 from /tmp/venv-pcoK/lib/python3.11/site-packages/pip (python 3.11) 14:44:38 aiohappyeyeballs==2.7.1 14:44:38 aiohttp==3.14.3 14:44:38 aiosignal==1.4.0 14:44:38 appdirs==1.4.4 14:44:38 argcomplete==3.7.2 14:44:38 aspy.yaml==1.3.0 14:44:38 attrs==26.1.0 14:44:38 autopage==0.6.0 14:44:38 beautifulsoup4==4.15.0 14:44:38 boto3==1.43.88 14:44:38 botocore==1.43.88 14:44:38 bs4==0.0.2 14:44:38 certifi==2026.7.22 14:44:38 cffi==2.1.1 14:44:38 cfgv==3.5.0 14:44:38 chardet==7.6.0 14:44:38 charset-normalizer==3.5.1 14:44:38 click==8.5.0 14:44:38 cliff==4.16.0 14:44:38 cmd2==4.2.3 14:44:38 cryptography==3.3.2 14:44:38 debtcollector==3.1.0 14:44:38 decorator==5.3.1 14:44:38 defusedxml==0.7.1 14:44:38 Deprecated==1.3.1 14:44:38 distlib==0.4.3 14:44:38 dnspython==2.8.0 14:44:38 docker==7.2.0 14:44:38 dogpile.cache==1.5.0 14:44:38 durationpy==0.11 14:44:38 email-validator==2.3.0 14:44:38 filelock==3.32.5 14:44:38 frozenlist==1.8.0 14:44:38 future==1.0.0 14:44:38 gitdb==4.0.12 14:44:38 GitPython==3.1.61 14:44:38 httplib2==0.30.2 14:44:38 identify==2.6.19 14:44:38 idna==3.19 14:44:38 importlib-resources==1.5.0 14:44:38 iso8601==2.1.0 14:44:38 Jinja2==3.1.6 14:44:38 jmespath==1.1.0 14:44:38 jsonpatch==1.33 14:44:38 jsonpointer==3.1.1 14:44:38 jsonschema==4.26.0 14:44:38 jsonschema-specifications==2025.9.1 14:44:38 keystoneauth1==5.17.0 14:44:38 kubernetes==36.0.3 14:44:38 lftools==0.37.23 14:44:38 lxml==6.1.3 14:44:38 markdown-it-py==4.2.0 14:44:38 MarkupSafe==3.0.3 14:44:38 mdurl==0.1.2 14:44:38 msgpack==1.2.2 14:44:38 multi_key_dict==2.0.3 14:44:38 multidict==6.7.1 14:44:38 munch==4.0.0 14:44:38 netaddr==1.3.0 14:44:38 niet==1.4.2 14:44:38 nodeenv==1.10.0 14:44:38 oauth2client==4.1.3 14:44:38 oauthlib==3.3.1 14:44:38 openstacksdk==4.20.0 14:44:38 os-service-types==1.9.0 14:44:38 osc-lib==4.7.0 14:44:38 oslo.config==10.7.0 14:44:38 oslo.context==6.5.0 14:44:38 oslo.i18n==6.9.0 14:44:38 oslo.log==8.3.1 14:44:38 oslo.serialization==5.11.0 14:44:38 oslo.utils==10.2.0 14:44:38 packaging==26.3 14:44:38 pbr==7.0.3 14:44:38 platformdirs==4.11.7 14:44:38 prettytable==3.18.0 14:44:38 prompt_toolkit==3.0.53 14:44:38 propcache==0.5.2 14:44:38 psutil==7.2.2 14:44:38 pyasn1==0.6.4 14:44:38 pyasn1_modules==0.4.2 14:44:38 pycparser==3.0 14:44:38 pygerrit2==2.0.15 14:44:38 PyGithub==2.10.0 14:44:38 Pygments==2.21.0 14:44:38 PyJWT==2.13.0 14:44:38 PyNaCl==1.6.2 14:44:38 pyparsing==2.4.7 14:44:38 pyperclip==1.11.0 14:44:38 pyrsistent==0.20.0 14:44:38 python-dateutil==2.9.0.post0 14:44:38 python-discovery==1.6.0 14:44:38 python-heatclient==5.3.0 14:44:38 python-jenkins==1.8.3 14:44:38 python-keystoneclient==6.0.0 14:44:38 python-magnumclient==5.0.0 14:44:38 python-manilaclient==6.3.0 14:44:38 python-openstackclient==10.3.0 14:44:38 python-swiftclient==4.11.0 14:44:38 PyYAML==6.0.3 14:44:38 referencing==0.37.0 14:44:38 requests==2.34.2 14:44:38 requests-oauthlib==2.0.0 14:44:38 rfc3986==2.0.0 14:44:38 rich==15.0.0 14:44:38 rich-argparse==1.8.0 14:44:38 rpds-py==2026.6.3 14:44:38 rsa==4.9.1 14:44:38 ruamel.yaml==0.19.1 14:44:38 ruamel.yaml.clib==0.2.15 14:44:38 s3transfer==0.19.2 14:44:38 simplejson==4.1.2 14:44:38 six==1.17.0 14:44:38 smmap==5.0.3 14:44:38 soupsieve==2.9.2 14:44:38 stevedore==5.9.1 14:44:38 tabulate==0.10.0 14:44:38 toml==0.10.2 14:44:38 tomlkit==0.15.1 14:44:38 tqdm==4.70.0 14:44:38 typing_extensions==4.16.0 14:44:38 urllib3==1.26.20 14:44:38 virtualenv==21.7.8 14:44:38 wcwidth==0.8.3 14:44:38 websocket-client==1.9.2 14:44:38 wrapt==2.4.0 14:44:38 xdg==6.0.0 14:44:38 xmltodict==1.0.4 14:44:38 yarl==1.24.5 14:44:38 yq==4.1.2 14:44:38 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins5486551854889440400.sh 14:44:38 ---> uv-install.sh 14:44:38 Installing uv/uvx (latest) using shell installer 14:44:38 2026-09-04 14:44:38 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-6oxGW3.sh" [1] 14:44:38 downloading uv 0.12.9 x86_64-unknown-linux-gnu 14:44:39 installing to /home/jenkins/.local/bin 14:44:39 uv 14:44:39 uvx 14:44:39 everything's installed! 14:44:39 14:44:39 To add $HOME/.local/bin to your PATH, either restart your shell or run: 14:44:39 14:44:39 source $HOME/.local/bin/env (sh, bash, zsh) 14:44:39 source $HOME/.local/bin/env.fish (fish) 14:44:39 Adding install location to PATH 14:44:39 ---> Validating uv/uvx install 14:44:39 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:44:39 [EnvInject] - Injecting environment variables from a build step. 14:44:39 [EnvInject] - Injecting as environment variables the properties content 14:44:39 PYTHON=python3 14:44:39 14:44:39 [EnvInject] - Variables injected successfully. 14:44:39 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins16749307573853245984.sh 14:44:39 ---> tox-install.sh 14:44:39 + source /home/jenkins/lf-env.sh 14:44:39 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:44:39 ++ mktemp -d /tmp/venv-XXXX 14:44:39 + lf_venv=/tmp/venv-WIb7 14:44:39 + local venv_file=/tmp/.os_lf_venv 14:44:39 + local python=python3 14:44:39 + local options 14:44:39 + local set_path=true 14:44:39 + local install_args= 14:44:39 ++ 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:39 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:39 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:39 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:44:39 + true 14:44:39 + case $1 in 14:44:39 + venv_file=/tmp/.toxenv 14:44:39 + shift 2 14:44:39 + true 14:44:39 + case $1 in 14:44:39 + shift 14:44:39 + break 14:44:39 + case $python in 14:44:39 + local pkg_list= 14:44:39 + [[ -d /opt/pyenv ]] 14:44:39 + echo 'Setup pyenv:' 14:44:39 Setup pyenv: 14:44:39 + export PYENV_ROOT=/opt/pyenv 14:44:39 + PYENV_ROOT=/opt/pyenv 14:44:39 + 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:39 + 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:39 + pyenv versions 14:44:39 system 14:44:39 3.8.20 14:44:39 3.9.20 14:44:39 3.10.15 14:44:39 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:44:39 + command -v pyenv 14:44:39 ++ pyenv init - --no-rehash 14:44:39 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:44:39 for i in ${!paths[@]}; do 14:44:39 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:44:39 fi; done; 14:44:39 echo "${paths[*]}"'\'')" 14:44:39 export PATH="/opt/pyenv/shims:${PATH}" 14:44:39 export PYENV_SHELL=bash 14:44:39 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:44:39 pyenv() { 14:44:39 local command 14:44:39 command="${1:-}" 14:44:39 if [ "$#" -gt 0 ]; then 14:44:39 shift 14:44:39 fi 14:44:39 14:44:39 case "$command" in 14:44:39 rehash|shell) 14:44:39 eval "$(pyenv "sh-$command" "$@")" 14:44:39 ;; 14:44:39 *) 14:44:39 command pyenv "$command" "$@" 14:44:39 ;; 14:44:39 esac 14:44:39 }' 14:44:39 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:44:39 for i in ${!paths[@]}; do 14:44:39 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:44:39 fi; done; 14:44:39 echo "${paths[*]}"' 14:44:39 ++ 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:39 ++ 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:39 ++ 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:39 ++ export PYENV_SHELL=bash 14:44:39 ++ PYENV_SHELL=bash 14:44:39 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:44:39 +++ complete -F _pyenv pyenv 14:44:39 ++ lf-pyver python3 14:44:39 ++ local py_version_xy=python3 14:44:39 ++ local py_version_xyz= 14:44:39 ++ pyenv versions 14:44:39 ++ sed 's/^[ *]* //' 14:44:39 ++ grep -E '^[0-9.]*[0-9]$' 14:44:39 ++ local command 14:44:39 ++ command=versions 14:44:39 ++ '[' 1 -gt 0 ']' 14:44:39 ++ shift 14:44:39 ++ case "$command" in 14:44:39 ++ command pyenv versions 14:44:39 ++ awk '{ print $1 }' 14:44:39 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:44:39 +++ grep '^3' /tmp/.pyenv_versions 14:44:39 +++ sort -V 14:44:39 +++ tail -n 1 14:44:39 ++ py_version_xyz=3.11.10 14:44:39 ++ [[ -z 3.11.10 ]] 14:44:39 ++ echo 3.11.10 14:44:39 ++ return 0 14:44:39 + pyenv local 3.11.10 14:44:39 + local command 14:44:39 + command=local 14:44:39 + '[' 2 -gt 0 ']' 14:44:39 + shift 14:44:39 + case "$command" in 14:44:39 + command pyenv local 3.11.10 14:44:39 + for arg in "$@" 14:44:39 + case $arg in 14:44:39 + pkg_list+='tox ' 14:44:39 + for arg in "$@" 14:44:39 + case $arg in 14:44:39 + pkg_list+='virtualenv ' 14:44:39 + for arg in "$@" 14:44:39 + case $arg in 14:44:39 + pkg_list+='urllib3~=1.26.15 ' 14:44:39 + [[ -f /tmp/.toxenv ]] 14:44:39 + [[ ! -f /tmp/.toxenv ]] 14:44:39 + [[ -n '' ]] 14:44:39 + python3 -m venv /tmp/venv-WIb7 14:44:44 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-WIb7' 14:44:44 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-WIb7 14:44:44 + echo /tmp/venv-WIb7 14:44:44 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 14:44:44 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 14:44:44 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:44:44 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:44:44 + local 'pip_opts=--upgrade --quiet' 14:44:44 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:44:44 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:44:44 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:44:44 + [[ -n '' ]] 14:44:44 + [[ -n '' ]] 14:44:44 + lf-venv-pip-install /tmp/venv-WIb7/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:44:44 + local venv_python=/tmp/venv-WIb7/bin/python3 14:44:44 + shift 14:44:44 + local upstream=https://pypi.org/simple 14:44:44 + /tmp/venv-WIb7/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:49 + return 0 14:44:49 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:44:49 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:44:49 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:44:49 + lf-venv-pip-install /tmp/venv-WIb7/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:49 + local venv_python=/tmp/venv-WIb7/bin/python3 14:44:49 + shift 14:44:49 + local upstream=https://pypi.org/simple 14:44:49 + /tmp/venv-WIb7/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:50 + return 0 14:44:50 + type python3 14:44:50 + true 14:44:50 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-WIb7/bin to PATH' 14:44:50 lf-activate-venv(): INFO: Adding /tmp/venv-WIb7/bin to PATH 14:44:50 + PATH=/tmp/venv-WIb7/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:50 + return 0 14:44:50 + python3 --version 14:44:50 Python 3.11.10 14:44:50 + python3 -m pip --version 14:44:51 pip 26.2.1 from /tmp/venv-WIb7/lib/python3.11/site-packages/pip (python 3.11) 14:44:51 + python3 -m pip freeze 14:44:51 cachetools==7.1.8 14:44:51 colorama==0.4.6 14:44:51 distlib==0.4.3 14:44:51 filelock==3.32.5 14:44:51 packaging==26.3 14:44:51 platformdirs==4.11.7 14:44:51 pluggy==1.6.0 14:44:51 pyproject-api==1.11.0 14:44:51 python-discovery==1.6.0 14:44:51 tomli_w==1.2.0 14:44:51 tox==4.61.2 14:44:51 typing_extensions==4.16.0 14:44:51 urllib3==1.26.20 14:44:51 virtualenv==21.7.8 14:44:51 [transportpce-tox-verify-vanadium] $ /bin/sh -xe /tmp/jenkins18429636768672269109.sh 14:44:51 [EnvInject] - Injecting environment variables from a build step. 14:44:51 [EnvInject] - Injecting as environment variables the properties content 14:44:51 PARALLEL=True 14:44:51 14:44:51 [EnvInject] - Variables injected successfully. 14:44:51 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins996683991666178757.sh 14:44:51 ---> tox-run.sh 14:44:51 + 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:51 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:44:51 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:44:51 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:44:51 + cd /w/workspace/transportpce-tox-verify-vanadium/. 14:44:51 + source /home/jenkins/lf-env.sh 14:44:51 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:44:51 ++ mktemp -d /tmp/venv-XXXX 14:44:51 + lf_venv=/tmp/venv-GsOl 14:44:51 + local venv_file=/tmp/.os_lf_venv 14:44:51 + local python=python3 14:44:51 + local options 14:44:51 + local set_path=true 14:44:51 + local install_args= 14:44:51 ++ 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:51 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:51 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:51 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:44:51 + true 14:44:51 + case $1 in 14:44:51 + venv_file=/tmp/.toxenv 14:44:51 + shift 2 14:44:51 + true 14:44:51 + case $1 in 14:44:51 + shift 14:44:51 + break 14:44:51 + case $python in 14:44:51 + local pkg_list= 14:44:51 + [[ -d /opt/pyenv ]] 14:44:51 + echo 'Setup pyenv:' 14:44:51 Setup pyenv: 14:44:51 + export PYENV_ROOT=/opt/pyenv 14:44:51 + PYENV_ROOT=/opt/pyenv 14:44:51 + 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:51 + 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:51 + pyenv versions 14:44:51 system 14:44:51 3.8.20 14:44:51 3.9.20 14:44:51 3.10.15 14:44:51 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:44:51 + command -v pyenv 14:44:51 ++ pyenv init - --no-rehash 14:44:51 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:44:51 for i in ${!paths[@]}; do 14:44:51 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:44:51 fi; done; 14:44:51 echo "${paths[*]}"'\'')" 14:44:51 export PATH="/opt/pyenv/shims:${PATH}" 14:44:51 export PYENV_SHELL=bash 14:44:51 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:44:51 pyenv() { 14:44:51 local command 14:44:51 command="${1:-}" 14:44:51 if [ "$#" -gt 0 ]; then 14:44:51 shift 14:44:51 fi 14:44:51 14:44:51 case "$command" in 14:44:51 rehash|shell) 14:44:51 eval "$(pyenv "sh-$command" "$@")" 14:44:51 ;; 14:44:51 *) 14:44:51 command pyenv "$command" "$@" 14:44:51 ;; 14:44:51 esac 14:44:51 }' 14:44:51 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:44:51 for i in ${!paths[@]}; do 14:44:51 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:44:51 fi; done; 14:44:51 echo "${paths[*]}"' 14:44:51 ++ 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:51 ++ 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:51 ++ 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:51 ++ export PYENV_SHELL=bash 14:44:51 ++ PYENV_SHELL=bash 14:44:51 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:44:51 +++ complete -F _pyenv pyenv 14:44:51 ++ lf-pyver python3 14:44:51 ++ local py_version_xy=python3 14:44:51 ++ local py_version_xyz= 14:44:51 ++ pyenv versions 14:44:51 ++ local command 14:44:51 ++ command=versions 14:44:51 ++ '[' 1 -gt 0 ']' 14:44:51 ++ shift 14:44:51 ++ case "$command" in 14:44:51 ++ command pyenv versions 14:44:51 ++ awk '{ print $1 }' 14:44:51 ++ grep -E '^[0-9.]*[0-9]$' 14:44:51 ++ sed 's/^[ *]* //' 14:44:51 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:44:51 +++ grep '^3' /tmp/.pyenv_versions 14:44:51 +++ sort -V 14:44:51 +++ tail -n 1 14:44:51 ++ py_version_xyz=3.11.10 14:44:51 ++ [[ -z 3.11.10 ]] 14:44:51 ++ echo 3.11.10 14:44:51 ++ return 0 14:44:51 + pyenv local 3.11.10 14:44:51 + local command 14:44:51 + command=local 14:44:51 + '[' 2 -gt 0 ']' 14:44:51 + shift 14:44:51 + case "$command" in 14:44:51 + command pyenv local 3.11.10 14:44:51 + for arg in "$@" 14:44:51 + case $arg in 14:44:51 + pkg_list+='tox ' 14:44:51 + for arg in "$@" 14:44:51 + case $arg in 14:44:51 + pkg_list+='virtualenv ' 14:44:51 + for arg in "$@" 14:44:51 + case $arg in 14:44:51 + pkg_list+='urllib3~=1.26.15 ' 14:44:51 + [[ -f /tmp/.toxenv ]] 14:44:51 ++ cat /tmp/.toxenv 14:44:51 + lf_venv=/tmp/venv-WIb7 14:44:51 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-WIb7 from' file:/tmp/.toxenv 14:44:51 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-WIb7 from file:/tmp/.toxenv 14:44:51 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:44:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:44:51 + local 'pip_opts=--upgrade --quiet' 14:44:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:44:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:44:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:44:51 + [[ -n '' ]] 14:44:51 + [[ -n '' ]] 14:44:51 + lf-venv-pip-install /tmp/venv-WIb7/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:44:51 + local venv_python=/tmp/venv-WIb7/bin/python3 14:44:51 + shift 14:44:51 + local upstream=https://pypi.org/simple 14:44:51 + /tmp/venv-WIb7/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:52 + return 0 14:44:52 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:44:52 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:44:52 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:44:52 + lf-venv-pip-install /tmp/venv-WIb7/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:52 + local venv_python=/tmp/venv-WIb7/bin/python3 14:44:52 + shift 14:44:52 + local upstream=https://pypi.org/simple 14:44:52 + /tmp/venv-WIb7/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:53 + return 0 14:44:53 + type python3 14:44:53 + true 14:44:53 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-WIb7/bin to PATH' 14:44:53 lf-activate-venv(): INFO: Adding /tmp/venv-WIb7/bin to PATH 14:44:53 + PATH=/tmp/venv-WIb7/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:53 + return 0 14:44:53 + [[ -d /opt/pyenv ]] 14:44:53 + echo '---> Setting up pyenv' 14:44:53 ---> Setting up pyenv 14:44:53 + export PYENV_ROOT=/opt/pyenv 14:44:53 + PYENV_ROOT=/opt/pyenv 14:44:53 + export PATH=/opt/pyenv/bin:/tmp/venv-WIb7/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:53 + PATH=/opt/pyenv/bin:/tmp/venv-WIb7/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:53 ++ pwd 14:44:53 + PYTHONPATH=/w/workspace/transportpce-tox-verify-vanadium 14:44:53 + export PYTHONPATH 14:44:53 + export TOX_TESTENV_PASSENV=PYTHONPATH 14:44:53 + TOX_TESTENV_PASSENV=PYTHONPATH 14:44:53 + tox --version 14:44:54 4.61.2 from /tmp/venv-WIb7/lib/python3.11/site-packages/tox/__init__.py 14:44:54 + PARALLEL=True 14:44:54 + TOX_OPTIONS_LIST= 14:44:54 + [[ -n '' ]] 14:44:54 + case ${PARALLEL,,} in 14:44:54 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 14:44:54 + tox --parallel auto --parallel-live 14:44:54 + tee -a /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tox.log 14:44:55 docs: install_deps> python -I -m pip install -r docs/requirements.txt 14:44:55 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 14:44:55 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:44:55 checkbashisms: freeze> python -m pip freeze --all 14:44:56 checkbashisms: pip==26.2.1,setuptools==84.0.0 14:44:56 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:44:56 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:44:56 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 14:44:57 checkbashisms: OK ✔ in 3.15 seconds 14:44:57 pre-commit: install_deps> python -I -m pip install pre-commit 14:45:00 pre-commit: freeze> python -m pip freeze --all 14:45:00 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:00 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:45:00 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:00 /usr/bin/cpan 14:45:00 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run --all-files --show-diff-on-failure 14:45:00 [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:00 [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:00 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 14:45:01 [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:01 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 14:45:02 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 14:45:02 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:45:03 buildcontroller: freeze> python -m pip freeze --all 14:45:03 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 14:45:03 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:03 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh 14:45:03 + update-java-alternatives -l 14:45:03 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 14:45:03 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 14:45:03 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 14:45:03 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 14:45:03 update-alternatives: error: no alternatives for jaotc 14:45:03 update-alternatives: error: no alternatives for rmic 14:45:03 + java -version 14:45:03 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 14:45:03 + JAVA_VER=21 14:45:03 + echo 21 14:45:03 21 14:45:03 + javac -version 14:45:03 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 14:45:04 + JAVAC_VER=21 14:45:04 + echo 21 14:45:04 + [ 21 -ge 21 ] 14:45:04 + [ 21 -ge 21 ] 14:45:04 21 14:45:04 ok, java is 21 or newer 14:45:04 + echo ok, java is 21 or newer 14:45:04 + 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:04 https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz: 14:45:04 2026-09-04 14:45:04 ERROR 404: Not Found. 14:45:04 + sudo mkdir -p /opt 14:45:04 + sudo tar xf /tmp/apache-maven-3.9.14-bin.tar.gz -C /opt 14:45:09 tar: /tmp/apache-maven-3.9.14-bin.tar.gz: Cannot open: No such file or directory 14:45:09 tar: Error is not recoverable: exiting now 14:45:09 + sudo ln -s /opt/apache-maven-3.9.14 /opt/maven 14:45:09 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 14:45:09 + mvn --version 14:45:09 ./installMavenUbuntu.sh: 28: mvn: not found 14:45:09 buildcontroller: exit 127 (5.68 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh pid=2767 14:45:09 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 14:45:09 buildcontroller: FAIL ✖ in 14.76 seconds 14:45:09 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 14:45:10 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 14:45:10 [INFO] Once installed this environment will be reused. 14:45:10 [INFO] This may take a few minutes... 14:45:12 docs: freeze> python -m pip freeze --all 14:45:12 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:12 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:13 pylint: freeze> python -m pip freeze --all 14:45:13 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:13 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:13 docs-linkcheck: freeze> python -m pip freeze --all 14:45:14 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:14 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:15 docs: OK ✔ in 20.79 seconds 14:45:15 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:15 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:45:15 [INFO] Once installed this environment will be reused. 14:45:15 [INFO] This may take a few minutes... 14:45:22 docs-linkcheck: OK ✔ in 28.03 seconds 14:45:22 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:23 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 14:45:23 [INFO] Once installed this environment will be reused. 14:45:23 [INFO] This may take a few minutes... 14:45:24 build_karaf_tests121: freeze> python -m pip freeze --all 14:45:24 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:24 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:24 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf121 14:45:24 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:24 build karaf in karaf121 with ./karaf121.env 14:45:24 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:24 build_karaf_tests121: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3158 14:45:24 build_karaf_tests121: FAIL ✖ in 9.29 seconds 14:45:24 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:27 [INFO] Installing environment for https://github.com/perltidy/perltidy. 14:45:27 [INFO] Once installed this environment will be reused. 14:45:27 [INFO] This may take a few minutes... 14:45:29 build_karaf_tests221: freeze> python -m pip freeze --all 14:45:30 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:30 build_karaf_tests221: 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 ../karaf221 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 in karaf221 with ./karaf221.env 14:45:30 build_karaf_tests221: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3199 14:45:30 build_karaf_tests221: FAIL ✖ in 7.62 seconds 14:45:30 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:31 build_karaf_tests71: freeze> python -m pip freeze --all 14:45:31 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:31 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:31 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 14:45:31 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:31 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:31 build karaf in karaf71 with ./karaf71.env 14:45:31 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3222 14:45:31 build_karaf_tests71: FAIL ✖ in 6.8 seconds 14:45:31 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:32 14:45:32 ------------------------------------ 14:45:32 Your code has been rated at 10.00/10 14:45:32 14:45:34 pylint: OK ✔ in 25.17 seconds 14:45:34 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:35 trim trailing whitespace.................................................Passed 14:45:35 Tabs remover.............................................................Passed 14:45:35 autopep8.................................................................build_karaf_tests190: freeze> python -m pip freeze --all 14:45:37 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:37 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:37 build karaf in karafoc with ./karafoc.env 14:45:37 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc 14:45:37 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:37 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:37 build_karaf_tests190: exit 127 (0.08 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3382 14:45:37 build_karaf_tests190: FAIL ✖ in 7.66 seconds 14:45:37 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:39 buildlighty: freeze> python -m pip freeze --all 14:45:39 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:39 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh 14:45:39 ./build.sh: 7: mvn: not found 14:45:39 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 14:45:39 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh pid=3406 14:45:39 Passed 14:45:39 perltidy.................................................................Passed 14:45:40 buildlighty: FAIL ✖ in 8.18 seconds 14:45:40 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run gitlint-ci --hook-stage manual 14:45:40 [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:40 [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:40 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 14:45:40 [INFO] Once installed this environment will be reused. 14:45:40 [INFO] This may take a few minutes... 14:45:42 sims: freeze> python -m pip freeze --all 14:45:42 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:42 sims: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./install_lightynode.sh 14:45:42 Using lighynode version 20.1.0.5 14:45:42 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 14:45:46 gitlint..................................................................Passed 14:46:33 sims: OK ✔ in 12.57 seconds 14:46:33 pre-commit: OK ✔ in 49.42 seconds 14:46:33 testsPCE: freeze> python -m pip freeze --all 14:46:33 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:33 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce 14:46:33 pytest -q transportpce_tests/pce/test01_pce.py 14:48:34 EEEEEEEEEEEEEEEEEEEE [100%] 14:48:37 ==================================== ERRORS ==================================== 14:48:37 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 14:48:37 14:48:37 cls = 14:48:37 14:48:37 @classmethod 14:48:37 def setUpClass(cls): 14:48:37 # pylint: disable=bare-except 14:48:37 sample_files_parsed = False 14:48:37 time.sleep(20) 14:48:37 try: 14:48:37 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:37 "..", "..", "sample_configs", "honeynode-topo.json") 14:48:37 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 14:48:37 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 14:48:37 14:48:37 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:37 "..", "..", "sample_configs", "NW-simple-topology.json") 14:48:37 14:48:37 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 14:48:37 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 14:48:37 14:48:37 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:37 "..", "..", "sample_configs", "NW-for-test-5-4.json") 14:48:37 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 14:48:37 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 14:48:37 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:37 "..", "..", "sample_configs", "pce_portmapping_121.json") 14:48:37 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 14:48:37 cls.port_mapping_data = port_mapping.read() 14:48:37 sample_files_parsed = True 14:48:37 except PermissionError as err: 14:48:37 print("Permission Error when trying to read sample files\n", err) 14:48:37 sys.exit(2) 14:48:37 except FileNotFoundError as err: 14:48:37 print("File Not found Error when trying to read sample files\n", err) 14:48:37 sys.exit(2) 14:48:37 except: 14:48:37 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 14:48:37 sys.exit(2) 14:48:37 finally: 14:48:37 if sample_files_parsed: 14:48:37 print("sample files content loaded") 14:48:37 14:48:37 > cls.processes = test_utils.start_tpce() 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 14:48:37 transportpce_tests/pce/test01_pce.py:93: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 def start_tpce(): 14:48:37 if 'NO_ODL_STARTUP' in os.environ: 14:48:37 print('No OpenDaylight instance to start!') 14:48:37 return [] 14:48:37 print('starting OpenDaylight...') 14:48:37 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:48:37 process = start_lighty() 14:48:37 else: 14:48:37 process = start_karaf() 14:48:37 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:48:37 print('OpenDaylight started !') 14:48:37 else: 14:48:37 print('OpenDaylight failed to start !') 14:48:37 shutdown_process(process) 14:48:37 for pid in process_list: 14:48:37 shutdown_process(pid) 14:48:37 > sys.exit(1) 14:48:37 E SystemExit: 1 14:48:37 14:48:37 transportpce_tests/common/test_utils.py:232: SystemExit 14:48:37 ---------------------------- Captured stdout setup ----------------------------- 14:48:37 sample files content loaded 14:48:37 starting OpenDaylight... 14:48:37 starting KARAF (karaf) TransportPCE build... 14:48:37 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:48:37 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8ab2e0> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bb4c0> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d877f60> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8ab2e0> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236fd59120> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8ab2e0> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8b9d00> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bba60> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d877f60> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bbb00> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bb380> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d877f60> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bafc0> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8b9da0> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bbd80> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bbb00> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d877e20> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d877ce0> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 14:48:37 14:48:37 cls = 14:48:37 func = . at 0x7f236d8bbc40> 14:48:37 when = 'setup' 14:48:37 reraise = (, ) 14:48:37 14:48:37 @classmethod 14:48:37 def from_call( 14:48:37 cls, 14:48:37 func: Callable[[], TResult], 14:48:37 when: Literal["collect", "setup", "call", "teardown"], 14:48:37 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:37 ) -> CallInfo[TResult]: 14:48:37 """Call func, wrapping the result in a CallInfo. 14:48:37 14:48:37 :param func: 14:48:37 The function to call. Called without arguments. 14:48:37 :type func: Callable[[], _pytest.runner.TResult] 14:48:37 :param when: 14:48:37 The phase in which the function is called. 14:48:37 :param reraise: 14:48:37 Exception or exceptions that shall propagate if raised by the 14:48:37 function, instead of being wrapped in the CallInfo. 14:48:37 """ 14:48:37 excinfo = None 14:48:37 instant = timing.Instant() 14:48:37 try: 14:48:37 > result: TResult | None = func() 14:48:37 ^^^^^^ 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:37 lambda: runtest_hook(item=item, **kwds), 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:37 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:37 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:37 yield 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:37 return (yield) 14:48:37 ^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:37 item.session._setupstate.setup(item) 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:37 col.setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:37 super().setup() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:37 self._request._fillfixtures() 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:37 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:37 fixturedef = self._get_active_fixturedef(argname) 14:48:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:37 fixturedef.execute(request=subrequest) 14:48:37 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:37 14:48:37 self = 14:48:37 request = > 14:48:37 14:48:37 def execute(self, request: SubRequest) -> FixtureValue: 14:48:37 """Return the value of this fixture, executing it if not cached.""" 14:48:37 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:37 # This needs to be done before checking if we have a cached value, since 14:48:37 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:37 # parametrization, they finalize themselves and fixtures depending on it 14:48:37 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:37 # See #4871 14:48:37 requested_fixtures_that_should_finalize_us = [] 14:48:37 for argname in self.argnames: 14:48:37 fixturedef = request._get_active_fixturedef(argname) 14:48:37 # Saves requested fixtures in a list so we later can add our finalizer 14:48:37 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:37 # down first. This is generally handled by SetupState, but still currently 14:48:37 # needed when this fixture is not parametrized but depends on a parametrized 14:48:37 # fixture. 14:48:37 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:37 14:48:37 # Check for (and return) cached value/exception. 14:48:37 if self.cached_result is not None: 14:48:37 request_cache_key = self.cache_key(request) 14:48:37 cache_key = self.cached_result[1] 14:48:37 try: 14:48:37 # Attempt to make a normal == check: this might fail for objects 14:48:37 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:37 cache_hit = bool(request_cache_key == cache_key) 14:48:37 except (ValueError, RuntimeError): 14:48:37 # If the comparison raises, use 'is' as fallback. 14:48:37 cache_hit = request_cache_key is cache_key 14:48:37 14:48:37 if cache_hit: 14:48:37 if self.cached_result[2] is not None: 14:48:37 exc, exc_tb = self.cached_result[2] 14:48:37 raise exc.with_traceback(exc_tb) 14:48:37 else: 14:48:37 return self.cached_result[0] 14:48:37 # We have a previous but differently parametrized fixture instance 14:48:37 # so we need to tear it down before creating a new one. 14:48:37 self.finish(request) 14:48:37 assert self.cached_result is None 14:48:37 14:48:37 # Add finalizer to requested fixtures we saved previously. 14:48:37 # We make sure to do this after checking for cached value to avoid 14:48:37 # adding our finalizer multiple times. (#12135) 14:48:37 finalizer = functools.partial(self.finish, request=request) 14:48:37 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:37 parent_fixture.addfinalizer(finalizer) 14:48:37 14:48:37 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:37 # which is executed last. 14:48:37 > assert not self._finalizers 14:48:37 ^^^^^^^^^^^^^^^^^^^^ 14:48:37 E AssertionError 14:48:37 14:48:37 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:37 =========================== short test summary info ============================ 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 14:48:37 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 14:48:37 20 errors in 123.78s (0:02:03) 14:48:37 testsPCE: exit 1 (124.06 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce pid=3521 14:48:38 testsPCE: FAIL ✖ in 3 minutes 0.12 seconds 14:48:38 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:38 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:38 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:44 tests121: freeze> python -m pip freeze --all 14:48:44 tests_tapi: freeze> python -m pip freeze --all 14:48:44 tests190: freeze> python -m pip freeze --all 14:48:44 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:44 tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 14:48:44 using environment variables from ./karaf121.env 14:48:44 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 14:48:44 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:44 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi 14:48:45 using environment variables from ./karaf221.env 14:48:45 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 14:48:45 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:45 tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc 14:48:45 using environment variables from ./karafoc.env 14:48:45 pytest -q transportpce_tests/oc/test01_portmapping.py 14:50:25 EEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:50:27 ==================================== ERRORS ==================================== 14:50:27 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 14:50:27 14:50:27 cls = 14:50:27 14:50:27 @classmethod 14:50:27 def setUpClass(cls): 14:50:27 > cls.processes = test_utils.start_tpce() 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 14:50:27 transportpce_tests/oc/test01_portmapping.py:29: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 def start_tpce(): 14:50:27 if 'NO_ODL_STARTUP' in os.environ: 14:50:27 print('No OpenDaylight instance to start!') 14:50:27 return [] 14:50:27 print('starting OpenDaylight...') 14:50:27 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:27 process = start_lighty() 14:50:27 else: 14:50:27 process = start_karaf() 14:50:27 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:27 print('OpenDaylight started !') 14:50:27 else: 14:50:27 print('OpenDaylight failed to start !') 14:50:27 shutdown_process(process) 14:50:27 for pid in process_list: 14:50:27 shutdown_process(pid) 14:50:27 > sys.exit(1) 14:50:27 E SystemExit: 1 14:50:27 14:50:27 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:27 ---------------------------- Captured stdout setup ----------------------------- 14:50:27 starting OpenDaylight... 14:50:27 starting KARAF (karafoc) TransportPCE build... 14:50:27 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:27 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fc930fe0> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fc9536a0> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fc917240> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fe0defc0> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fc9513a0> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fc931120> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24ff02c400> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fc917240> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:50:27 14:50:27 cls = 14:50:27 func = . at 0x7f24fc931120> 14:50:27 when = 'setup' 14:50:27 reraise = (, ) 14:50:27 14:50:27 @classmethod 14:50:27 def from_call( 14:50:27 cls, 14:50:27 func: Callable[[], TResult], 14:50:27 when: Literal["collect", "setup", "call", "teardown"], 14:50:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:27 ) -> CallInfo[TResult]: 14:50:27 """Call func, wrapping the result in a CallInfo. 14:50:27 14:50:27 :param func: 14:50:27 The function to call. Called without arguments. 14:50:27 :type func: Callable[[], _pytest.runner.TResult] 14:50:27 :param when: 14:50:27 The phase in which the function is called. 14:50:27 :param reraise: 14:50:27 Exception or exceptions that shall propagate if raised by the 14:50:27 function, instead of being wrapped in the CallInfo. 14:50:27 """ 14:50:27 excinfo = None 14:50:27 instant = timing.Instant() 14:50:27 try: 14:50:27 > result: TResult | None = func() 14:50:27 ^^^^^^ 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:27 lambda: runtest_hook(item=item, **kwds), 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:27 yield 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:27 return (yield) 14:50:27 ^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:27 item.session._setupstate.setup(item) 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:27 col.setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:27 super().setup() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:27 self._request._fillfixtures() 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:27 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:27 fixturedef = self._get_active_fixturedef(argname) 14:50:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:27 fixturedef.execute(request=subrequest) 14:50:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:27 14:50:27 self = 14:50:27 request = > 14:50:27 14:50:27 def execute(self, request: SubRequest) -> FixtureValue: 14:50:27 """Return the value of this fixture, executing it if not cached.""" 14:50:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:27 # This needs to be done before checking if we have a cached value, since 14:50:27 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:27 # parametrization, they finalize themselves and fixtures depending on it 14:50:27 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:27 # See #4871 14:50:27 requested_fixtures_that_should_finalize_us = [] 14:50:27 for argname in self.argnames: 14:50:27 fixturedef = request._get_active_fixturedef(argname) 14:50:27 # Saves requested fixtures in a list so we later can add our finalizer 14:50:27 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:27 # down first. This is generally handled by SetupState, but still currently 14:50:27 # needed when this fixture is not parametrized but depends on a parametrized 14:50:27 # fixture. 14:50:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:27 14:50:27 # Check for (and return) cached value/exception. 14:50:27 if self.cached_result is not None: 14:50:27 request_cache_key = self.cache_key(request) 14:50:27 cache_key = self.cached_result[1] 14:50:27 try: 14:50:27 # Attempt to make a normal == check: this might fail for objects 14:50:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:27 cache_hit = bool(request_cache_key == cache_key) 14:50:27 except (ValueError, RuntimeError): 14:50:27 # If the comparison raises, use 'is' as fallback. 14:50:27 cache_hit = request_cache_key is cache_key 14:50:27 14:50:27 if cache_hit: 14:50:27 if self.cached_result[2] is not None: 14:50:27 exc, exc_tb = self.cached_result[2] 14:50:27 raise exc.with_traceback(exc_tb) 14:50:27 else: 14:50:27 return self.cached_result[0] 14:50:27 # We have a previous but differently parametrized fixture instance 14:50:27 # so we need to tear it down before creating a new one. 14:50:27 self.finish(request) 14:50:27 assert self.cached_result is None 14:50:27 14:50:27 # Add finalizer to requested fixtures we saved previously. 14:50:27 # We make sure to do this after checking for cached value to avoid 14:50:27 # adding our finalizer multiple times. (#12135) 14:50:27 finalizer = functools.partial(self.finish, request=request) 14:50:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:27 parent_fixture.addfinalizer(finalizer) 14:50:27 14:50:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:27 # which is executed last. 14:50:27 > assert not self._finalizers 14:50:27 ^^^^^^^^^^^^^^^^^^^^ 14:50:27 E AssertionError 14:50:27 14:50:27 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:27 =========================== short test summary info ============================ 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 14:50:27 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:50:27 10 errors in 102.27s (0:01:42) 14:50:27 Etests190: exit 1 (102.55 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc pid=3647 14:50:27 Etests190: FAIL ✖ in 1 minute 49.73 seconds 14:50:27 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:27 EEEEEEEEEEEEEEEEEEEE [100%] 14:50:30 ==================================== ERRORS ==================================== 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:50:30 14:50:30 cls = 14:50:30 14:50:30 @classmethod 14:50:30 def setUpClass(cls): 14:50:30 > cls.processes = test_utils.start_tpce() 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 14:50:30 transportpce_tests/1.2.1/test01_portmapping.py:33: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 def start_tpce(): 14:50:30 if 'NO_ODL_STARTUP' in os.environ: 14:50:30 print('No OpenDaylight instance to start!') 14:50:30 return [] 14:50:30 print('starting OpenDaylight...') 14:50:30 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:30 process = start_lighty() 14:50:30 else: 14:50:30 process = start_karaf() 14:50:30 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:30 print('OpenDaylight started !') 14:50:30 else: 14:50:30 print('OpenDaylight failed to start !') 14:50:30 shutdown_process(process) 14:50:30 for pid in process_list: 14:50:30 shutdown_process(pid) 14:50:30 > sys.exit(1) 14:50:30 E SystemExit: 1 14:50:30 14:50:30 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:30 ---------------------------- Captured stdout setup ----------------------------- 14:50:30 starting OpenDaylight... 14:50:30 starting KARAF (karaf121) TransportPCE build... 14:50:30 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:30 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a1760> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d3560> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ef227740> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ed86f560> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a13a0> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a1580> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d3600> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d28e0> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d2de0> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d3600> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d2f20> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a1580> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d2de0> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d2f20> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a1800> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a1bc0> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a1da0> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0d2840> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ebca5d00> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 14:50:30 14:50:30 cls = 14:50:30 func = . at 0x7fe5ec0a1bc0> 14:50:30 when = 'setup' 14:50:30 reraise = (, ) 14:50:30 14:50:30 @classmethod 14:50:30 def from_call( 14:50:30 cls, 14:50:30 func: Callable[[], TResult], 14:50:30 when: Literal["collect", "setup", "call", "teardown"], 14:50:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:30 ) -> CallInfo[TResult]: 14:50:30 """Call func, wrapping the result in a CallInfo. 14:50:30 14:50:30 :param func: 14:50:30 The function to call. Called without arguments. 14:50:30 :type func: Callable[[], _pytest.runner.TResult] 14:50:30 :param when: 14:50:30 The phase in which the function is called. 14:50:30 :param reraise: 14:50:30 Exception or exceptions that shall propagate if raised by the 14:50:30 function, instead of being wrapped in the CallInfo. 14:50:30 """ 14:50:30 excinfo = None 14:50:30 instant = timing.Instant() 14:50:30 try: 14:50:30 > result: TResult | None = func() 14:50:30 ^^^^^^ 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:30 lambda: runtest_hook(item=item, **kwds), 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:30 yield 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:30 return (yield) 14:50:30 ^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:30 item.session._setupstate.setup(item) 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:30 col.setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:30 super().setup() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:30 self._request._fillfixtures() 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:30 fixturedef = self._get_active_fixturedef(argname) 14:50:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:30 fixturedef.execute(request=subrequest) 14:50:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:30 14:50:30 self = 14:50:30 request = > 14:50:30 14:50:30 def execute(self, request: SubRequest) -> FixtureValue: 14:50:30 """Return the value of this fixture, executing it if not cached.""" 14:50:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:30 # This needs to be done before checking if we have a cached value, since 14:50:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:30 # parametrization, they finalize themselves and fixtures depending on it 14:50:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:30 # See #4871 14:50:30 requested_fixtures_that_should_finalize_us = [] 14:50:30 for argname in self.argnames: 14:50:30 fixturedef = request._get_active_fixturedef(argname) 14:50:30 # Saves requested fixtures in a list so we later can add our finalizer 14:50:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:30 # down first. This is generally handled by SetupState, but still currently 14:50:30 # needed when this fixture is not parametrized but depends on a parametrized 14:50:30 # fixture. 14:50:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:30 14:50:30 # Check for (and return) cached value/exception. 14:50:30 if self.cached_result is not None: 14:50:30 request_cache_key = self.cache_key(request) 14:50:30 cache_key = self.cached_result[1] 14:50:30 try: 14:50:30 # Attempt to make a normal == check: this might fail for objects 14:50:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:30 cache_hit = bool(request_cache_key == cache_key) 14:50:30 except (ValueError, RuntimeError): 14:50:30 # If the comparison raises, use 'is' as fallback. 14:50:30 cache_hit = request_cache_key is cache_key 14:50:30 14:50:30 if cache_hit: 14:50:30 if self.cached_result[2] is not None: 14:50:30 exc, exc_tb = self.cached_result[2] 14:50:30 raise exc.with_traceback(exc_tb) 14:50:30 else: 14:50:30 return self.cached_result[0] 14:50:30 # We have a previous but differently parametrized fixture instance 14:50:30 # so we need to tear it down before creating a new one. 14:50:30 self.finish(request) 14:50:30 assert self.cached_result is None 14:50:30 14:50:30 # Add finalizer to requested fixtures we saved previously. 14:50:30 # We make sure to do this after checking for cached value to avoid 14:50:30 # adding our finalizer multiple times. (#12135) 14:50:30 finalizer = functools.partial(self.finish, request=request) 14:50:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:30 parent_fixture.addfinalizer(finalizer) 14:50:30 14:50:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:30 # which is executed last. 14:50:30 > assert not self._finalizers 14:50:30 ^^^^^^^^^^^^^^^^^^^^ 14:50:30 E AssertionError 14:50:30 14:50:30 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:30 =========================== short test summary info ============================ 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 14:50:30 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 14:50:30 21 errors in 105.25s (0:01:45) 14:50:30 Etests121: exit 1 (105.60 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 pid=3626 14:50:30 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 52.63 seconds 14:50:37 tests71: freeze> python -m pip freeze --all 14:50:37 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:38 tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 14:50:38 using environment variables from ./karaf71.env 14:50:38 pytest -q transportpce_tests/7.1/test01_portmapping.py 14:50:38 EE [100%] 14:50:38 ==================================== ERRORS ==================================== 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 14:50:38 14:50:38 cls = 14:50:38 14:50:38 @classmethod 14:50:38 def setUpClass(cls): 14:50:38 cls.init_failed = False 14:50:38 os.environ['JAVA_MIN_MEM'] = '1024M' 14:50:38 os.environ['JAVA_MAX_MEM'] = '4096M' 14:50:38 > cls.processes = test_utils.start_tpce() 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 14:50:38 transportpce_tests/tapi/test01_abstracted_topology.py:148: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 def start_tpce(): 14:50:38 if 'NO_ODL_STARTUP' in os.environ: 14:50:38 print('No OpenDaylight instance to start!') 14:50:38 return [] 14:50:38 print('starting OpenDaylight...') 14:50:38 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:38 process = start_lighty() 14:50:38 else: 14:50:38 process = start_karaf() 14:50:38 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:38 print('OpenDaylight started !') 14:50:38 else: 14:50:38 print('OpenDaylight failed to start !') 14:50:38 shutdown_process(process) 14:50:38 for pid in process_list: 14:50:38 shutdown_process(pid) 14:50:38 > sys.exit(1) 14:50:38 E SystemExit: 1 14:50:38 14:50:38 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:38 ---------------------------- Captured stdout setup ----------------------------- 14:50:38 starting OpenDaylight... 14:50:38 starting KARAF (karaf221) TransportPCE build... 14:50:38 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca985bc0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9cb4c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecc14b380> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd083740> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9cb560> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9cb880> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca985bc0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca985bc0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9cae80> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca660> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9cad40> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca660> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ada80> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca984e00> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5adc60> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca984e00> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5adf80> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4ecd0351c0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ad260> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ad3a0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ad120> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ae480> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ac900> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5aea20> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ac720> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5acea0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ada80> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ad260> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ae020> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5ad4e0> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca9ca700> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 14:50:38 14:50:38 cls = 14:50:38 func = . at 0x7f4eca5af560> 14:50:38 when = 'setup' 14:50:38 reraise = (, ) 14:50:38 14:50:38 @classmethod 14:50:38 def from_call( 14:50:38 cls, 14:50:38 func: Callable[[], TResult], 14:50:38 when: Literal["collect", "setup", "call", "teardown"], 14:50:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:38 ) -> CallInfo[TResult]: 14:50:38 """Call func, wrapping the result in a CallInfo. 14:50:38 14:50:38 :param func: 14:50:38 The function to call. Called without arguments. 14:50:38 :type func: Callable[[], _pytest.runner.TResult] 14:50:38 :param when: 14:50:38 The phase in which the function is called. 14:50:38 :param reraise: 14:50:38 Exception or exceptions that shall propagate if raised by the 14:50:38 function, instead of being wrapped in the CallInfo. 14:50:38 """ 14:50:38 excinfo = None 14:50:38 instant = timing.Instant() 14:50:38 try: 14:50:38 > result: TResult | None = func() 14:50:38 ^^^^^^ 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:38 lambda: runtest_hook(item=item, **kwds), 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:38 yield 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:38 return (yield) 14:50:38 ^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:38 item.session._setupstate.setup(item) 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:38 col.setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:38 super().setup() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:38 self._request._fillfixtures() 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:38 fixturedef = self._get_active_fixturedef(argname) 14:50:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:38 fixturedef.execute(request=subrequest) 14:50:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:38 14:50:38 self = 14:50:38 request = > 14:50:38 14:50:38 def execute(self, request: SubRequest) -> FixtureValue: 14:50:38 """Return the value of this fixture, executing it if not cached.""" 14:50:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:38 # This needs to be done before checking if we have a cached value, since 14:50:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:38 # parametrization, they finalize themselves and fixtures depending on it 14:50:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:38 # See #4871 14:50:38 requested_fixtures_that_should_finalize_us = [] 14:50:38 for argname in self.argnames: 14:50:38 fixturedef = request._get_active_fixturedef(argname) 14:50:38 # Saves requested fixtures in a list so we later can add our finalizer 14:50:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:38 # down first. This is generally handled by SetupState, but still currently 14:50:38 # needed when this fixture is not parametrized but depends on a parametrized 14:50:38 # fixture. 14:50:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:38 14:50:38 # Check for (and return) cached value/exception. 14:50:38 if self.cached_result is not None: 14:50:38 request_cache_key = self.cache_key(request) 14:50:38 cache_key = self.cached_result[1] 14:50:38 try: 14:50:38 # Attempt to make a normal == check: this might fail for objects 14:50:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:38 cache_hit = bool(request_cache_key == cache_key) 14:50:38 except (ValueError, RuntimeError): 14:50:38 # If the comparison raises, use 'is' as fallback. 14:50:38 cache_hit = request_cache_key is cache_key 14:50:38 14:50:38 if cache_hit: 14:50:38 if self.cached_result[2] is not None: 14:50:38 exc, exc_tb = self.cached_result[2] 14:50:38 raise exc.with_traceback(exc_tb) 14:50:38 else: 14:50:38 return self.cached_result[0] 14:50:38 # We have a previous but differently parametrized fixture instance 14:50:38 # so we need to tear it down before creating a new one. 14:50:38 self.finish(request) 14:50:38 assert self.cached_result is None 14:50:38 14:50:38 # Add finalizer to requested fixtures we saved previously. 14:50:38 # We make sure to do this after checking for cached value to avoid 14:50:38 # adding our finalizer multiple times. (#12135) 14:50:38 finalizer = functools.partial(self.finish, request=request) 14:50:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:38 parent_fixture.addfinalizer(finalizer) 14:50:38 14:50:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:38 # which is executed last. 14:50:38 > assert not self._finalizers 14:50:38 ^^^^^^^^^^^^^^^^^^^^ 14:50:38 E AssertionError 14:50:38 14:50:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:38 =========================== short test summary info ============================ 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 14:50:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 14:50:38 51 errors in 113.15s (0:01:53) 14:50:38 tests_tapi: exit 1 (113.51 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi pid=3637 14:50:38 tests_tapi: FAIL ✖ in 2 minutes 0.58 seconds 14:50:38 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:47 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:47 tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 14:50:47 using environment variables from ./karaf221.env 14:50:47 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 14:52:18 EEEEEEEEEEEE [100%] 14:52:20 ==================================== ERRORS ==================================== 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 14:52:20 14:52:20 cls = 14:52:20 14:52:20 @classmethod 14:52:20 def setUpClass(cls): 14:52:20 > cls.processes = test_utils.start_tpce() 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 14:52:20 transportpce_tests/7.1/test01_portmapping.py:32: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 def start_tpce(): 14:52:20 if 'NO_ODL_STARTUP' in os.environ: 14:52:20 print('No OpenDaylight instance to start!') 14:52:20 return [] 14:52:20 print('starting OpenDaylight...') 14:52:20 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:52:20 process = start_lighty() 14:52:20 else: 14:52:20 process = start_karaf() 14:52:20 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:52:20 print('OpenDaylight started !') 14:52:20 else: 14:52:20 print('OpenDaylight failed to start !') 14:52:20 shutdown_process(process) 14:52:20 for pid in process_list: 14:52:20 shutdown_process(pid) 14:52:20 > sys.exit(1) 14:52:20 E SystemExit: 1 14:52:20 14:52:20 transportpce_tests/common/test_utils.py:232: SystemExit 14:52:20 ---------------------------- Captured stdout setup ----------------------------- 14:52:20 starting OpenDaylight... 14:52:20 starting KARAF (karaf71) TransportPCE build... 14:52:20 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e0e6700> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e10b740> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f89307f4ea0> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e0e6700> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892f8afe20> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e0e6700> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e10b600> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e109d00> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e10b920> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e10b7e0> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 14:52:20 14:52:20 cls = 14:52:20 func = . at 0x7f892e0e6700> 14:52:20 when = 'setup' 14:52:20 reraise = (, ) 14:52:20 14:52:20 @classmethod 14:52:20 def from_call( 14:52:20 cls, 14:52:20 func: Callable[[], TResult], 14:52:20 when: Literal["collect", "setup", "call", "teardown"], 14:52:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:20 ) -> CallInfo[TResult]: 14:52:20 """Call func, wrapping the result in a CallInfo. 14:52:20 14:52:20 :param func: 14:52:20 The function to call. Called without arguments. 14:52:20 :type func: Callable[[], _pytest.runner.TResult] 14:52:20 :param when: 14:52:20 The phase in which the function is called. 14:52:20 :param reraise: 14:52:20 Exception or exceptions that shall propagate if raised by the 14:52:20 function, instead of being wrapped in the CallInfo. 14:52:20 """ 14:52:20 excinfo = None 14:52:20 instant = timing.Instant() 14:52:20 try: 14:52:20 > result: TResult | None = func() 14:52:20 ^^^^^^ 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:20 lambda: runtest_hook(item=item, **kwds), 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:20 yield 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:20 return (yield) 14:52:20 ^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:20 item.session._setupstate.setup(item) 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:20 col.setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:20 super().setup() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:20 self._request._fillfixtures() 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:20 fixturedef = self._get_active_fixturedef(argname) 14:52:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:20 fixturedef.execute(request=subrequest) 14:52:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:20 14:52:20 self = 14:52:20 request = > 14:52:20 14:52:20 def execute(self, request: SubRequest) -> FixtureValue: 14:52:20 """Return the value of this fixture, executing it if not cached.""" 14:52:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:20 # This needs to be done before checking if we have a cached value, since 14:52:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:20 # parametrization, they finalize themselves and fixtures depending on it 14:52:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:20 # See #4871 14:52:20 requested_fixtures_that_should_finalize_us = [] 14:52:20 for argname in self.argnames: 14:52:20 fixturedef = request._get_active_fixturedef(argname) 14:52:20 # Saves requested fixtures in a list so we later can add our finalizer 14:52:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:20 # down first. This is generally handled by SetupState, but still currently 14:52:20 # needed when this fixture is not parametrized but depends on a parametrized 14:52:20 # fixture. 14:52:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:20 14:52:20 # Check for (and return) cached value/exception. 14:52:20 if self.cached_result is not None: 14:52:20 request_cache_key = self.cache_key(request) 14:52:20 cache_key = self.cached_result[1] 14:52:20 try: 14:52:20 # Attempt to make a normal == check: this might fail for objects 14:52:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:20 cache_hit = bool(request_cache_key == cache_key) 14:52:20 except (ValueError, RuntimeError): 14:52:20 # If the comparison raises, use 'is' as fallback. 14:52:20 cache_hit = request_cache_key is cache_key 14:52:20 14:52:20 if cache_hit: 14:52:20 if self.cached_result[2] is not None: 14:52:20 exc, exc_tb = self.cached_result[2] 14:52:20 raise exc.with_traceback(exc_tb) 14:52:20 else: 14:52:20 return self.cached_result[0] 14:52:20 # We have a previous but differently parametrized fixture instance 14:52:20 # so we need to tear it down before creating a new one. 14:52:20 self.finish(request) 14:52:20 assert self.cached_result is None 14:52:20 14:52:20 # Add finalizer to requested fixtures we saved previously. 14:52:20 # We make sure to do this after checking for cached value to avoid 14:52:20 # adding our finalizer multiple times. (#12135) 14:52:20 finalizer = functools.partial(self.finish, request=request) 14:52:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:20 parent_fixture.addfinalizer(finalizer) 14:52:20 14:52:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:20 # which is executed last. 14:52:20 > assert not self._finalizers 14:52:20 ^^^^^^^^^^^^^^^^^^^^ 14:52:20 E AssertionError 14:52:20 14:52:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:20 =========================== short test summary info ============================ 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 14:52:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 14:52:20 12 errors in 102.48s (0:01:42) 14:52:20 tests71: exit 1 (102.83 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 pid=3790 14:52:28 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:52:35 ==================================== ERRORS ==================================== 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:52:35 14:52:35 cls = 14:52:35 14:52:35 @classmethod 14:52:35 def setUpClass(cls): 14:52:35 > cls.processes = test_utils.start_tpce() 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 14:52:35 transportpce_tests/2.2.1/test01_portmapping.py:33: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 def start_tpce(): 14:52:35 if 'NO_ODL_STARTUP' in os.environ: 14:52:35 print('No OpenDaylight instance to start!') 14:52:35 return [] 14:52:35 print('starting OpenDaylight...') 14:52:35 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:52:35 process = start_lighty() 14:52:35 else: 14:52:35 process = start_karaf() 14:52:35 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:52:35 print('OpenDaylight started !') 14:52:35 else: 14:52:35 print('OpenDaylight failed to start !') 14:52:35 shutdown_process(process) 14:52:35 for pid in process_list: 14:52:35 shutdown_process(pid) 14:52:35 > sys.exit(1) 14:52:35 E SystemExit: 1 14:52:35 14:52:35 transportpce_tests/common/test_utils.py:232: SystemExit 14:52:35 ---------------------------- Captured stdout setup ----------------------------- 14:52:35 starting OpenDaylight... 14:52:35 starting KARAF (karaf221) TransportPCE build... 14:52:35 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:52:35 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89f560> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a8e3ec0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264c06ea20> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264cfb44a0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93eca0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a8e3ec0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264c06ea20> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93ccc0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89f6a0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a8e3ec0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93c360> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89f6a0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93f9c0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93f880> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e020> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e020> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93fb00> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93cb80> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93fc40> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93f880> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93c360> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93f1a0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93f100> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93e5c0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93eca0> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a93f740> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 14:52:35 14:52:35 cls = 14:52:35 func = . at 0x7f264a89e340> 14:52:35 when = 'setup' 14:52:35 reraise = (, ) 14:52:35 14:52:35 @classmethod 14:52:35 def from_call( 14:52:35 cls, 14:52:35 func: Callable[[], TResult], 14:52:35 when: Literal["collect", "setup", "call", "teardown"], 14:52:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:35 ) -> CallInfo[TResult]: 14:52:35 """Call func, wrapping the result in a CallInfo. 14:52:35 14:52:35 :param func: 14:52:35 The function to call. Called without arguments. 14:52:35 :type func: Callable[[], _pytest.runner.TResult] 14:52:35 :param when: 14:52:35 The phase in which the function is called. 14:52:35 :param reraise: 14:52:35 Exception or exceptions that shall propagate if raised by the 14:52:35 function, instead of being wrapped in the CallInfo. 14:52:35 """ 14:52:35 excinfo = None 14:52:35 instant = timing.Instant() 14:52:35 try: 14:52:35 > result: TResult | None = func() 14:52:35 ^^^^^^ 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:35 lambda: runtest_hook(item=item, **kwds), 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:35 yield 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:35 return (yield) 14:52:35 ^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:35 item.session._setupstate.setup(item) 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:35 col.setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:35 super().setup() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:35 self._request._fillfixtures() 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:35 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:35 fixturedef = self._get_active_fixturedef(argname) 14:52:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:35 fixturedef.execute(request=subrequest) 14:52:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:35 14:52:35 self = 14:52:35 request = > 14:52:35 14:52:35 def execute(self, request: SubRequest) -> FixtureValue: 14:52:35 """Return the value of this fixture, executing it if not cached.""" 14:52:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:35 # This needs to be done before checking if we have a cached value, since 14:52:35 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:35 # parametrization, they finalize themselves and fixtures depending on it 14:52:35 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:35 # See #4871 14:52:35 requested_fixtures_that_should_finalize_us = [] 14:52:35 for argname in self.argnames: 14:52:35 fixturedef = request._get_active_fixturedef(argname) 14:52:35 # Saves requested fixtures in a list so we later can add our finalizer 14:52:35 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:35 # down first. This is generally handled by SetupState, but still currently 14:52:35 # needed when this fixture is not parametrized but depends on a parametrized 14:52:35 # fixture. 14:52:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:35 14:52:35 # Check for (and return) cached value/exception. 14:52:35 if self.cached_result is not None: 14:52:35 request_cache_key = self.cache_key(request) 14:52:35 cache_key = self.cached_result[1] 14:52:35 try: 14:52:35 # Attempt to make a normal == check: this might fail for objects 14:52:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:35 cache_hit = bool(request_cache_key == cache_key) 14:52:35 except (ValueError, RuntimeError): 14:52:35 # If the comparison raises, use 'is' as fallback. 14:52:35 cache_hit = request_cache_key is cache_key 14:52:35 14:52:35 if cache_hit: 14:52:35 if self.cached_result[2] is not None: 14:52:35 exc, exc_tb = self.cached_result[2] 14:52:35 raise exc.with_traceback(exc_tb) 14:52:35 else: 14:52:35 return self.cached_result[0] 14:52:35 # We have a previous but differently parametrized fixture instance 14:52:35 # so we need to tear it down before creating a new one. 14:52:35 self.finish(request) 14:52:35 assert self.cached_result is None 14:52:35 14:52:35 # Add finalizer to requested fixtures we saved previously. 14:52:35 # We make sure to do this after checking for cached value to avoid 14:52:35 # adding our finalizer multiple times. (#12135) 14:52:35 finalizer = functools.partial(self.finish, request=request) 14:52:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:35 parent_fixture.addfinalizer(finalizer) 14:52:35 14:52:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:35 # which is executed last. 14:52:35 > assert not self._finalizers 14:52:35 ^^^^^^^^^^^^^^^^^^^^ 14:52:35 E AssertionError 14:52:35 14:52:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:35 =========================== short test summary info ============================ 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 14:52:35 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 14:52:35 35 errors in 107.41s (0:01:47) 14:52:35 tests71: FAIL ✖ in 1 minute 53.3 seconds 14:52:35 tests221: exit 1 (107.76 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 pid=3847 14:52:35 tests221: FAIL ✖ in 1 minute 57.08 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:43 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 0x7f03fa79a3e0> 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 0x7f03fa7f6ac0> 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 0x7f03fbf167a0> 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 0x7f03fa79bba0> 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 0x7f03fa79bf60> 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 0x7f03fa79bba0> 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 0x7f03fa7f63e0> 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 0x7f03fa758360> 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 0x7f03fce598a0> 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 0x7f03fa79bf60> 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 0x7f03fa7f7420> 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 0x7f03fa758040> 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 0x7f03fce598a0> 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 0x7f03fa7f7880> 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 0x7f03fce598a0> 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 0x7f03fa758220> 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 0x7f03fa7f7880> 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 0x7f03fce598a0> 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 0x7f03fa758220> 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 0x7f03fa758400> 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 0x7f03fa758220> 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 0x7f03fa7f4040> 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 0x7f03fa758400> 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 0x7f03fa7f4040> 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 0x7f03fa7f6660> 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 0x7f03fa758400> 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 0x7f03fa7f6de0> 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 0x7f03fa7f6ca0> 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 0x7f03fa758400> 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 0x7f03fa7f7d80> 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 0x7f03fa7f76a0> 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 0x7f03fa758400> 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 0x7f03fa7f7c40> 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 0x7f03fa758400> 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 0x7f03fa7f7600> 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 0x7f03fa7f7740> 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 0x7f03fa758400> 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 0x7f03fa7f7d80> 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 0x7f03fa7f6ca0> 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 0x7f03fa758400> 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 0x7f03fa7f4040> 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 0x7f03fa7f7740> 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 0x7f03fa7f7880> 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 0x7f03fa758400> 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 0x7f03fa7f6660> 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 0x7f03fa758400> 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 0x7f03fa7f6b60> 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 0x7f03fa7f6de0> 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 0x7f03fa758400> 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 0x7f03fa7f63e0> 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 110.07s (0:01:50) 14:54:33 tests_hybrid: exit 1 (110.35 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid pid=3970 14:54:33 buildcontroller: FAIL code 127 (14.76=setup[9.08]+cmd[5.68] seconds) 14:54:33 sims: OK (12.57=setup[8.04]+cmd[4.52] seconds) 14:54:33 build_karaf_tests121: FAIL code 127 (9.29=setup[9.29]+cmd[0.01] seconds) 14:54:33 testsPCE: FAIL code 1 (180.12=setup[56.06]+cmd[124.06] seconds) 14:54:33 tests121: FAIL code 1 (112.63=setup[7.02]+cmd[105.60] seconds) 14:54:33 build_karaf_tests221: FAIL code 127 (7.62=setup[7.62]+cmd[0.01] seconds) 14:54:33 tests_tapi: FAIL code 1 (120.58=setup[7.07]+cmd[113.51] seconds) 14:54:33 tests221: FAIL code 1 (117.07=setup[9.32]+cmd[107.76] seconds) 14:54:33 build_karaf_tests71: FAIL code 127 (6.80=setup[6.80]+cmd[0.01] seconds) 14:54:33 tests71: FAIL code 1 (113.30=setup[10.47]+cmd[102.83] seconds) 14:54:33 build_karaf_tests190: FAIL code 127 (7.66=setup[7.59]+cmd[0.08] seconds) 14:54:33 tests190: FAIL code 1 (109.73=setup[7.18]+cmd[102.55] seconds) 14:54:33 tests_hybrid: FAIL code 1 (118.08=setup[7.74]+cmd[110.35] seconds) 14:54:33 buildlighty: FAIL code 9 (8.18=setup[8.16]+cmd[0.01] seconds) 14:54:33 docs: OK (20.79=setup[18.05]+cmd[2.73] seconds) 14:54:33 docs-linkcheck: OK (28.03=setup[19.72]+cmd[8.30] seconds) 14:54:33 checkbashisms: OK (3.15=setup[1.89]+cmd[0.00,0.04,1.21] seconds) 14:54:33 pre-commit: OK (49.42=setup[2.88]+cmd[0.00,0.00,39.82,6.72] seconds) 14:54:33 pylint: OK (25.16=setup[4.64]+cmd[20.52] seconds) 14:54:33 evaluation failed :( (579.22 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 ++ echo .tox/docs/log 14:54:33 ++ awk -F/ '{print $2}' 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:34 $ ssh-agent -k 14:54:34 unset SSH_AUTH_SOCK; 14:54:34 unset SSH_AGENT_PID; 14:54:34 echo Agent pid 1552 killed; 14:54:34 [ssh-agent] Stopped. 14:54:34 [PostBuildScript] - [INFO] Executing post build scripts. 14:54:34 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins14439379792176038412.sh 14:54:34 ---> sysstat.sh 14:54:34 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins8211729203212585130.sh 14:54:34 ---> package-listing.sh 14:54:34 ++ facter osfamily 14:54:34 ++ tr '[:upper:]' '[:lower:]' 14:54:35 + OS_FAMILY=debian 14:54:35 + workspace=/w/workspace/transportpce-tox-verify-vanadium 14:54:35 + START_PACKAGES=/tmp/packages_start.txt 14:54:35 + END_PACKAGES=/tmp/packages_end.txt 14:54:35 + DIFF_PACKAGES=/tmp/packages_diff.txt 14:54:35 + PACKAGES=/tmp/packages_start.txt 14:54:35 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:54:35 + PACKAGES=/tmp/packages_end.txt 14:54:35 + case "${OS_FAMILY}" in 14:54:35 + dpkg -l 14:54:35 + 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/jenkins4195045186671603688.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-pcoK 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:48 lf-activate-venv(): INFO: Adding /tmp/venv-pcoK/bin to PATH 14:54:48 INFO: Running in OpenStack, capturing instance metadata 14:54:49 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins17201565980715847509.sh 14:54:49 provisioning config files... 14:54:49 Could not find credentials [logs] for transportpce-tox-verify-vanadium #23 14:54:49 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-vanadium@tmp/config10178935356391642801tmp 14:54:49 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 14:54:49 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 14:54:49 provisioning config files... 14:54:49 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 14:54:49 [EnvInject] - Injecting environment variables from a build step. 14:54:49 [EnvInject] - Injecting as environment variables the properties content 14:54:49 SERVER_ID=logs 14:54:49 14:54:49 [EnvInject] - Variables injected successfully. 14:54:49 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins7761642561390182576.sh 14:54:49 ---> create-netrc.sh 14:54:49 WARN: Log server credential not found. 14:54:49 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins11867924409024950338.sh 14:54:49 ---> python-tools-install.sh 14:54:49 Setup pyenv: 14:54:49 system 14:54:49 3.8.20 14:54:49 3.9.20 14:54:49 3.10.15 14:54:49 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:49 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-pcoK from file:/tmp/.os_lf_venv 14:54:49 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:51 lf-activate-venv(): INFO: Installing additional packages: lftools 14:55:08 lf-activate-venv(): INFO: Adding /tmp/venv-pcoK/bin to PATH 14:55:08 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins1620923515111576153.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/jenkins2965996279960870617.sh 14:55:08 ---> sudo-logs.sh 14:55:08 Archiving 'sudo' log.. 14:55:09 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins3304911449133651216.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-pcoK 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-pcoK/bin to PATH 14:55:17 INFO: No stack-cost file found 14:55:17 INFO: Instance uptime: 790s 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=790 14:55:18 INFO: Successfully fetched Vexxhost pricing API 14:55:18 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,23,2026-09-04 14:55:18,v3-standard-4,790,0.11,0.00,FAILURE 14:55:18 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins12463523143971979137.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-pcoK 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-pcoK/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/23/ 14:55:29 INFO: archiving logs to S3 14:55:30 ---> uname -a: 14:55:30 Linux prd-ubuntu2204-docker-4c-16g-17 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 708 9991 4 5289 14937 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:cc:db:71 brd ff:ff:ff:ff:ff:ff 14:55:30 altname enp0s3 14:55:30 inet 10.30.170.68/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 14:55:30 valid_lft 85606sec preferred_lft 85606sec 14:55:30 inet6 fe80::f816:3eff:fecc:db71/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 46:9e:45:af:bf:89 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-17) 09/04/26 _x86_64_ (4 CPU) 14:55:30 14:55:30 14:42:19 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-17) 09/04/26 _x86_64_ (4 CPU) 14:55:30 14:55:30 14:42:19 LINUX RESTART (4 CPU) 14:55:30 14:55:30 14:55:30