20:46:59 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/124847 20:46:59 Running as SYSTEM 20:46:59 [EnvInject] - Loading node environment variables. 20:46:59 Building remotely on prd-ubuntu2204-docker-4c-16g-64948 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 20:47:00 [ssh-agent] Looking for ssh-agent implementation... 20:47:00 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:47:00 $ ssh-agent 20:47:00 SSH_AUTH_SOCK=/tmp/ssh-XXXXXX5eLJrB/agent.2436 20:47:00 SSH_AGENT_PID=2438 20:47:00 [ssh-agent] Started. 20:47:00 Running ssh-add (command line suppressed) 20:47:00 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_12296644658083836736.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_12296644658083836736.key) 20:47:00 [ssh-agent] Using credentials jenkins (jenkins-ssh) 20:47:00 The recommended git tool is: NONE 20:47:02 using credential jenkins-ssh 20:47:02 Wiping out workspace first. 20:47:02 Cloning the remote Git repository 20:47:03 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 20:47:03 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 20:47:03 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 20:47:03 > git --version # timeout=10 20:47:03 > git --version # 'git version 2.34.1' 20:47:03 using GIT_SSH to set credentials jenkins-ssh 20:47:03 Verifying host key using known hosts file, will automatically accept unseen keys 20:47:03 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 20:47:06 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 20:47:06 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:47:07 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 20:47:07 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 20:47:07 using GIT_SSH to set credentials jenkins-ssh 20:47:07 Verifying host key using known hosts file, will automatically accept unseen keys 20:47:07 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/47/124847/5 # timeout=10 20:47:07 > git rev-parse 83ffa6eb102fcd794a01400f123dff7b30cd4f0b^{commit} # timeout=10 20:47:07 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 20:47:07 Checking out Revision 83ffa6eb102fcd794a01400f123dff7b30cd4f0b (refs/changes/47/124847/5) 20:47:07 > git config core.sparsecheckout # timeout=10 20:47:07 > git checkout -f 83ffa6eb102fcd794a01400f123dff7b30cd4f0b # timeout=10 20:47:10 Commit message: "common: fix EventSubscriber thread-safety bugs" 20:47:10 > git rev-parse FETCH_HEAD^{commit} # timeout=10 20:47:10 > git rev-list --no-walk bfd2c47e37d47f66796eaf948699644129552e69 # timeout=10 20:47:10 > git remote # timeout=10 20:47:10 > git submodule init # timeout=10 20:47:10 > git submodule sync # timeout=10 20:47:11 > git config --get remote.origin.url # timeout=10 20:47:11 > git submodule init # timeout=10 20:47:11 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 20:47:11 ERROR: No submodules found. 20:47:11 provisioning config files... 20:47:11 copy managed file [npmrc] to file:/home/jenkins/.npmrc 20:47:11 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 20:47:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12286740037892687240.sh 20:47:11 ---> python-tools-install.sh 20:47:11 Setup pyenv: 20:47:11 * system (set by /opt/pyenv/version) 20:47:11 * 3.8.20 (set by /opt/pyenv/version) 20:47:11 * 3.9.20 (set by /opt/pyenv/version) 20:47:11 3.10.15 20:47:11 3.11.10 20:47:16 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-C3w1 20:47:16 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 20:47:16 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:47:21 lf-activate-venv(): INFO: Installing additional packages: lftools 20:47:55 lf-activate-venv(): INFO: Adding /tmp/venv-C3w1/bin to PATH 20:47:55 Generating Requirements File 20:48:28 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. 20:48:28 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 20:48:29 Python 3.11.10 20:48:29 pip 26.2.1 from /tmp/venv-C3w1/lib/python3.11/site-packages/pip (python 3.11) 20:48:29 aiohappyeyeballs==2.7.1 20:48:29 aiohttp==3.14.5 20:48:29 aiosignal==1.4.0 20:48:29 appdirs==1.4.4 20:48:29 argcomplete==3.7.2 20:48:29 aspy.yaml==1.3.0 20:48:29 attrs==26.1.0 20:48:29 autopage==0.6.0 20:48:29 beautifulsoup4==4.15.0 20:48:29 boto3==1.43.113 20:48:29 botocore==1.43.113 20:48:29 bs4==0.0.2 20:48:29 certifi==2026.7.22 20:48:29 cffi==2.1.1 20:48:29 cfgv==3.5.0 20:48:29 chardet==7.6.0 20:48:29 charset-normalizer==3.5.2 20:48:29 click==8.5.0 20:48:29 cliff==4.16.0 20:48:29 cmd2==4.3.0 20:48:29 cryptography==3.3.2 20:48:29 debtcollector==3.1.0 20:48:29 decorator==5.3.1 20:48:29 defusedxml==0.7.1 20:48:29 Deprecated==1.3.1 20:48:29 distlib==0.4.3 20:48:29 dnspython==2.9.0 20:48:29 docker==7.2.0 20:48:29 dogpile.cache==1.5.0 20:48:29 durationpy==0.11 20:48:29 email-validator==2.3.0 20:48:29 filelock==4.1.1 20:48:29 frozenlist==1.8.0 20:48:29 future==1.0.0 20:48:29 gitdb==4.0.12 20:48:29 GitPython==3.2.0 20:48:29 httplib2==0.30.2 20:48:29 identify==2.6.20 20:48:29 idna==3.20 20:48:29 importlib-resources==1.5.0 20:48:29 iso8601==2.1.0 20:48:29 Jinja2==3.1.6 20:48:29 jmespath==1.1.0 20:48:29 jsonpatch==1.35 20:48:29 jsonpointer==3.2.1 20:48:29 jsonschema==4.26.0 20:48:29 jsonschema-specifications==2025.9.1 20:48:29 keystoneauth1==5.18.1 20:48:29 kubernetes==36.0.3 20:48:29 lftools==0.37.23 20:48:29 lxml==6.1.3 20:48:29 markdown-it-py==4.2.0 20:48:29 MarkupSafe==3.0.4 20:48:29 mdurl==0.1.2 20:48:29 msgpack==1.2.3 20:48:29 multi_key_dict==2.0.3 20:48:29 multidict==7.1.0 20:48:29 munch==4.0.0 20:48:29 netaddr==1.3.0 20:48:29 niet==1.4.2 20:48:29 nodeenv==1.11.0 20:48:29 oauth2client==4.1.3 20:48:29 oauthlib==4.0.0 20:48:29 openstacksdk==4.21.0 20:48:29 os-service-types==1.9.0 20:48:29 osc-lib==4.7.0 20:48:29 oslo.config==10.7.0 20:48:29 oslo.context==6.5.0 20:48:29 oslo.i18n==6.9.0 20:48:29 oslo.log==8.3.2 20:48:29 oslo.serialization==5.11.0 20:48:29 oslo.utils==10.2.0 20:48:29 packaging==26.3 20:48:29 pbr==7.1.3 20:48:29 platformdirs==4.13.0 20:48:29 prettytable==3.18.0 20:48:29 prompt_toolkit==3.0.53 20:48:29 propcache==0.5.4 20:48:29 psutil==7.2.2 20:48:29 pyasn1==0.6.4 20:48:29 pyasn1_modules==0.4.2 20:48:29 pycparser==3.11 20:48:29 pygerrit2==2.0.15 20:48:29 PyGithub==2.10.0 20:48:29 Pygments==2.21.0 20:48:29 PyJWT==2.15.1 20:48:29 PyNaCl==1.6.2 20:48:29 pyparsing==2.4.7 20:48:29 pyperclip==1.11.0 20:48:29 pyrsistent==0.20.0 20:48:29 python-dateutil==2.9.0.post0 20:48:29 python-discovery==1.6.2 20:48:29 python-heatclient==5.3.0 20:48:29 python-jenkins==1.8.3 20:48:29 python-keystoneclient==6.0.0 20:48:29 python-magnumclient==5.0.0 20:48:29 python-manilaclient==6.3.0 20:48:29 python-openstackclient==10.4.0 20:48:29 python-swiftclient==4.11.0 20:48:29 PyYAML==6.0.3 20:48:29 referencing==0.37.0 20:48:29 requests==2.34.2 20:48:29 requests-oauthlib==2.0.0 20:48:29 rfc3986==2.0.0 20:48:29 rich==15.0.0 20:48:29 rich-argparse==1.8.0 20:48:29 rpds-py==2026.9.1 20:48:29 rsa==4.9.1 20:48:29 ruamel.yaml==0.19.1 20:48:29 ruamel.yaml.clib==0.2.15 20:48:29 s3transfer==0.19.2 20:48:29 simplejson==4.2.0 20:48:29 six==1.17.0 20:48:29 smmap==5.0.3 20:48:29 soupsieve==3.0.3 20:48:29 stevedore==5.9.1 20:48:29 tabulate==0.10.0 20:48:29 toml==0.10.2 20:48:29 tomlkit==0.15.1 20:48:29 tqdm==4.70.1 20:48:29 typing_extensions==4.16.0 20:48:29 urllib3==1.26.20 20:48:29 virtualenv==21.14.7 20:48:29 wcwidth==0.9.2 20:48:29 websocket-client==1.9.2 20:48:29 wrapt==2.5.0 20:48:29 xdg==6.0.0 20:48:29 xmltodict==1.0.4 20:48:29 yarl==1.25.1 20:48:29 yq==4.4.5 20:48:29 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins7810132262239499701.sh 20:48:29 ---> uv-install.sh 20:48:29 Installing uv/uvx (latest) using shell installer 20:48:30 2026-10-13 20:48:30 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71300/71300] -> "/tmp/uv-install-uo1Xhm.sh" [1] 20:48:30 downloading uv 0.13.0 x86_64-unknown-linux-gnu 20:48:30 installing to /home/jenkins/.local/bin 20:48:30 uv 20:48:30 uvx 20:48:30 everything's installed! 20:48:30 20:48:30 To add $HOME/.local/bin to your PATH, either restart your shell or run: 20:48:30 20:48:30 source $HOME/.local/bin/env (sh, bash, zsh) 20:48:30 source $HOME/.local/bin/env.fish (fish) 20:48:30 Adding install location to PATH 20:48:30 ---> Validating uv/uvx install 20:48:30 uvx 0.13.0 (x86_64-unknown-linux-gnu) 20:48:30 [EnvInject] - Injecting environment variables from a build step. 20:48:30 [EnvInject] - Injecting as environment variables the properties content 20:48:30 PYTHON=python3 20:48:30 20:48:30 [EnvInject] - Variables injected successfully. 20:48:30 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins11280235073283175361.sh 20:48:30 ---> tox-install.sh 20:48:30 + source /home/jenkins/lf-env.sh 20:48:30 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 20:48:30 ++ mktemp -d /tmp/venv-XXXX 20:48:30 + lf_venv=/tmp/venv-5V8x 20:48:30 + local venv_file=/tmp/.os_lf_venv 20:48:30 + local python=python3 20:48:30 + local options 20:48:30 + local set_path=true 20:48:30 + local install_args= 20:48:30 ++ 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 20:48:30 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 20:48:30 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 20:48:30 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 20:48:30 + true 20:48:30 + case $1 in 20:48:30 + venv_file=/tmp/.toxenv 20:48:30 + shift 2 20:48:30 + true 20:48:30 + case $1 in 20:48:30 + shift 20:48:30 + break 20:48:30 + case $python in 20:48:30 + local pkg_list= 20:48:30 + [[ -d /opt/pyenv ]] 20:48:30 + echo 'Setup pyenv:' 20:48:30 Setup pyenv: 20:48:30 + export PYENV_ROOT=/opt/pyenv 20:48:30 + PYENV_ROOT=/opt/pyenv 20:48:30 + 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 20:48:30 + 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 20:48:30 + pyenv versions 20:48:31 system 20:48:31 3.8.20 20:48:31 3.9.20 20:48:31 3.10.15 20:48:31 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 20:48:31 + command -v pyenv 20:48:31 ++ pyenv init - --no-rehash 20:48:31 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 20:48:31 for i in ${!paths[@]}; do 20:48:31 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 20:48:31 fi; done; 20:48:31 echo "${paths[*]}"'\'')" 20:48:31 export PATH="/opt/pyenv/shims:${PATH}" 20:48:31 export PYENV_SHELL=bash 20:48:31 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 20:48:31 pyenv() { 20:48:31 local command 20:48:31 command="${1:-}" 20:48:31 if [ "$#" -gt 0 ]; then 20:48:31 shift 20:48:31 fi 20:48:31 20:48:31 case "$command" in 20:48:31 rehash|shell) 20:48:31 eval "$(pyenv "sh-$command" "$@")" 20:48:31 ;; 20:48:31 *) 20:48:31 command pyenv "$command" "$@" 20:48:31 ;; 20:48:31 esac 20:48:31 }' 20:48:31 +++ bash --norc -ec 'IFS=:; paths=($PATH); 20:48:31 for i in ${!paths[@]}; do 20:48:31 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 20:48:31 fi; done; 20:48:31 echo "${paths[*]}"' 20:48:31 ++ 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 20:48:31 ++ 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 20:48:31 ++ 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 20:48:31 ++ export PYENV_SHELL=bash 20:48:31 ++ PYENV_SHELL=bash 20:48:31 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 20:48:31 +++ complete -F _pyenv pyenv 20:48:31 ++ lf-pyver python3 20:48:31 ++ local py_version_xy=python3 20:48:31 ++ local py_version_xyz= 20:48:31 ++ sed 's/^[ *]* //' 20:48:31 ++ pyenv versions 20:48:31 ++ awk '{ print $1 }' 20:48:31 ++ local command 20:48:31 ++ command=versions 20:48:31 ++ grep -E '^[0-9.]*[0-9]$' 20:48:31 ++ '[' 1 -gt 0 ']' 20:48:31 ++ shift 20:48:31 ++ case "$command" in 20:48:31 ++ command pyenv versions 20:48:31 ++ [[ ! -s /tmp/.pyenv_versions ]] 20:48:31 +++ grep '^3' /tmp/.pyenv_versions 20:48:31 +++ sort -V 20:48:31 +++ tail -n 1 20:48:31 ++ py_version_xyz=3.11.10 20:48:31 ++ [[ -z 3.11.10 ]] 20:48:31 ++ echo 3.11.10 20:48:31 ++ return 0 20:48:31 + pyenv local 3.11.10 20:48:31 + local command 20:48:31 + command=local 20:48:31 + '[' 2 -gt 0 ']' 20:48:31 + shift 20:48:31 + case "$command" in 20:48:31 + command pyenv local 3.11.10 20:48:31 + for arg in "$@" 20:48:31 + case $arg in 20:48:31 + pkg_list+='tox ' 20:48:31 + for arg in "$@" 20:48:31 + case $arg in 20:48:31 + pkg_list+='virtualenv ' 20:48:31 + for arg in "$@" 20:48:31 + case $arg in 20:48:31 + pkg_list+='urllib3~=1.26.15 ' 20:48:31 + [[ -f /tmp/.toxenv ]] 20:48:31 + [[ ! -f /tmp/.toxenv ]] 20:48:31 + [[ -n '' ]] 20:48:31 + python3 -m venv /tmp/venv-5V8x 20:48:35 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-5V8x' 20:48:35 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-5V8x 20:48:35 + echo /tmp/venv-5V8x 20:48:35 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 20:48:35 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 20:48:35 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 20:48:35 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:48:35 + local 'pip_opts=--upgrade --quiet' 20:48:35 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 20:48:35 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 20:48:35 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 20:48:35 + [[ -n '' ]] 20:48:35 + [[ -n '' ]] 20:48:35 + lf-venv-pip-install /tmp/venv-5V8x/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 20:48:35 + local venv_python=/tmp/venv-5V8x/bin/python3 20:48:35 + shift 20:48:35 + local upstream=https://pypi.org/simple 20:48:35 + /tmp/venv-5V8x/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 20:48:40 + return 0 20:48:40 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 20:48:40 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 20:48:40 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 20:48:40 + lf-venv-pip-install /tmp/venv-5V8x/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 20:48:40 + local venv_python=/tmp/venv-5V8x/bin/python3 20:48:40 + shift 20:48:40 + local upstream=https://pypi.org/simple 20:48:40 + /tmp/venv-5V8x/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 20:48:42 + return 0 20:48:42 + type python3 20:48:42 + true 20:48:42 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-5V8x/bin to PATH' 20:48:42 lf-activate-venv(): INFO: Adding /tmp/venv-5V8x/bin to PATH 20:48:42 + PATH=/tmp/venv-5V8x/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 20:48:42 + return 0 20:48:42 + python3 --version 20:48:42 Python 3.11.10 20:48:42 + python3 -m pip --version 20:48:42 pip 26.2.1 from /tmp/venv-5V8x/lib/python3.11/site-packages/pip (python 3.11) 20:48:42 + python3 -m pip freeze 20:48:43 cachetools==7.2.1 20:48:43 colorama==0.4.6 20:48:43 distlib==0.4.3 20:48:43 filelock==4.1.1 20:48:43 packaging==26.3 20:48:43 platformdirs==4.13.0 20:48:43 pluggy==1.6.0 20:48:43 pyproject-api==1.11.5 20:48:43 python-discovery==1.6.2 20:48:43 tomli_w==1.2.0 20:48:43 tox==4.65.4 20:48:43 typing_extensions==4.16.0 20:48:43 urllib3==1.26.20 20:48:43 virtualenv==21.14.7 20:48:43 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins5991955130534469927.sh 20:48:43 [EnvInject] - Injecting environment variables from a build step. 20:48:43 [EnvInject] - Injecting as environment variables the properties content 20:48:43 PARALLEL=True 20:48:43 20:48:43 [EnvInject] - Variables injected successfully. 20:48:43 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins6514781331098214779.sh 20:48:43 ---> tox-run.sh 20:48:43 + 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 20:48:43 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 20:48:43 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 20:48:43 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 20:48:43 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 20:48:43 + source /home/jenkins/lf-env.sh 20:48:43 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 20:48:43 ++ mktemp -d /tmp/venv-XXXX 20:48:43 + lf_venv=/tmp/venv-ajjD 20:48:43 + local venv_file=/tmp/.os_lf_venv 20:48:43 + local python=python3 20:48:43 + local options 20:48:43 + local set_path=true 20:48:43 + local install_args= 20:48:43 ++ 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 20:48:43 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 20:48:43 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 20:48:43 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 20:48:43 + true 20:48:43 + case $1 in 20:48:43 + venv_file=/tmp/.toxenv 20:48:43 + shift 2 20:48:43 + true 20:48:43 + case $1 in 20:48:43 + shift 20:48:43 + break 20:48:43 + case $python in 20:48:43 + local pkg_list= 20:48:43 + [[ -d /opt/pyenv ]] 20:48:43 + echo 'Setup pyenv:' 20:48:43 Setup pyenv: 20:48:43 + export PYENV_ROOT=/opt/pyenv 20:48:43 + PYENV_ROOT=/opt/pyenv 20:48:43 + 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 20:48:43 + 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 20:48:43 + pyenv versions 20:48:43 system 20:48:43 3.8.20 20:48:43 3.9.20 20:48:43 3.10.15 20:48:43 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 20:48:43 + command -v pyenv 20:48:43 ++ pyenv init - --no-rehash 20:48:43 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 20:48:43 for i in ${!paths[@]}; do 20:48:43 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 20:48:43 fi; done; 20:48:43 echo "${paths[*]}"'\'')" 20:48:43 export PATH="/opt/pyenv/shims:${PATH}" 20:48:43 export PYENV_SHELL=bash 20:48:43 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 20:48:43 pyenv() { 20:48:43 local command 20:48:43 command="${1:-}" 20:48:43 if [ "$#" -gt 0 ]; then 20:48:43 shift 20:48:43 fi 20:48:43 20:48:43 case "$command" in 20:48:43 rehash|shell) 20:48:43 eval "$(pyenv "sh-$command" "$@")" 20:48:43 ;; 20:48:43 *) 20:48:43 command pyenv "$command" "$@" 20:48:43 ;; 20:48:43 esac 20:48:43 }' 20:48:43 +++ bash --norc -ec 'IFS=:; paths=($PATH); 20:48:43 for i in ${!paths[@]}; do 20:48:43 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 20:48:43 fi; done; 20:48:43 echo "${paths[*]}"' 20:48:43 ++ 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 20:48:43 ++ 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 20:48:43 ++ 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 20:48:43 ++ export PYENV_SHELL=bash 20:48:43 ++ PYENV_SHELL=bash 20:48:43 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 20:48:43 +++ complete -F _pyenv pyenv 20:48:43 ++ lf-pyver python3 20:48:43 ++ local py_version_xy=python3 20:48:43 ++ local py_version_xyz= 20:48:43 ++ pyenv versions 20:48:43 ++ local command 20:48:43 ++ command=versions 20:48:43 ++ '[' 1 -gt 0 ']' 20:48:43 ++ shift 20:48:43 ++ case "$command" in 20:48:43 ++ command pyenv versions 20:48:43 ++ awk '{ print $1 }' 20:48:43 ++ grep -E '^[0-9.]*[0-9]$' 20:48:43 ++ sed 's/^[ *]* //' 20:48:43 ++ [[ ! -s /tmp/.pyenv_versions ]] 20:48:43 +++ grep '^3' /tmp/.pyenv_versions 20:48:43 +++ sort -V 20:48:43 +++ tail -n 1 20:48:43 ++ py_version_xyz=3.11.10 20:48:43 ++ [[ -z 3.11.10 ]] 20:48:43 ++ echo 3.11.10 20:48:43 ++ return 0 20:48:43 + pyenv local 3.11.10 20:48:43 + local command 20:48:43 + command=local 20:48:43 + '[' 2 -gt 0 ']' 20:48:43 + shift 20:48:43 + case "$command" in 20:48:43 + command pyenv local 3.11.10 20:48:43 + for arg in "$@" 20:48:43 + case $arg in 20:48:43 + pkg_list+='tox ' 20:48:43 + for arg in "$@" 20:48:43 + case $arg in 20:48:43 + pkg_list+='virtualenv ' 20:48:43 + for arg in "$@" 20:48:43 + case $arg in 20:48:43 + pkg_list+='urllib3~=1.26.15 ' 20:48:43 + [[ -f /tmp/.toxenv ]] 20:48:43 ++ cat /tmp/.toxenv 20:48:43 + lf_venv=/tmp/venv-5V8x 20:48:43 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-5V8x from' file:/tmp/.toxenv 20:48:43 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-5V8x from file:/tmp/.toxenv 20:48:43 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 20:48:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:48:43 + local 'pip_opts=--upgrade --quiet' 20:48:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 20:48:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 20:48:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 20:48:43 + [[ -n '' ]] 20:48:43 + [[ -n '' ]] 20:48:43 + lf-venv-pip-install /tmp/venv-5V8x/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 20:48:43 + local venv_python=/tmp/venv-5V8x/bin/python3 20:48:43 + shift 20:48:43 + local upstream=https://pypi.org/simple 20:48:43 + /tmp/venv-5V8x/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 20:48:44 + return 0 20:48:44 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 20:48:44 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 20:48:44 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 20:48:44 + lf-venv-pip-install /tmp/venv-5V8x/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 20:48:44 + local venv_python=/tmp/venv-5V8x/bin/python3 20:48:44 + shift 20:48:44 + local upstream=https://pypi.org/simple 20:48:44 + /tmp/venv-5V8x/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 20:48:45 + return 0 20:48:45 + type python3 20:48:45 + true 20:48:45 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-5V8x/bin to PATH' 20:48:45 lf-activate-venv(): INFO: Adding /tmp/venv-5V8x/bin to PATH 20:48:45 + PATH=/tmp/venv-5V8x/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 20:48:45 + return 0 20:48:45 + [[ -d /opt/pyenv ]] 20:48:45 + echo '---> Setting up pyenv' 20:48:45 ---> Setting up pyenv 20:48:45 + export PYENV_ROOT=/opt/pyenv 20:48:45 + PYENV_ROOT=/opt/pyenv 20:48:45 + export PATH=/opt/pyenv/bin:/tmp/venv-5V8x/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 20:48:45 + PATH=/opt/pyenv/bin:/tmp/venv-5V8x/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 20:48:45 ++ pwd 20:48:45 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 20:48:45 + export PYTHONPATH 20:48:45 + export TOX_TESTENV_PASSENV=PYTHONPATH 20:48:45 + TOX_TESTENV_PASSENV=PYTHONPATH 20:48:45 + tox --version 20:48:46 4.65.4 from /tmp/venv-5V8x/lib/python3.11/site-packages/tox/__init__.py 20:48:46 + PARALLEL=True 20:48:46 + TOX_OPTIONS_LIST= 20:48:46 + [[ -n '' ]] 20:48:46 + case ${PARALLEL,,} in 20:48:46 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 20:48:46 + tox --parallel auto --parallel-live 20:48:46 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 20:48:47 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 20:48:47 docs: install_deps> python -I -m pip install -r docs/requirements.txt 20:48:47 checkbashisms: freeze> python -m pip freeze --all 20:48:47 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:48:48 checkbashisms: pip==26.2.1,setuptools==84.0.0 20:48:48 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 20:48:48 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 20:48:48 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 20:48:49 checkbashisms: OK ✔ in 3.15 seconds 20:48:49 pre-commit: install_deps> python -I -m pip install pre-commit 20:48:52 pre-commit: freeze> python -m pip freeze --all 20:48:53 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.1.1,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.13.0,pre_commit==4.7.0,python-discovery==1.6.2,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.7 20:48:53 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 20:48:53 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 20:48:53 /usr/bin/cpan 20:48:53 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 20:48:53 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 20:48:53 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 20:48:54 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 20:48:54 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 20:48:54 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 20:48:55 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 20:48:56 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 20:48:56 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 20:48:56 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 20:48:56 buildcontroller: freeze> python -m pip freeze --all 20:48:56 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 20:48:57 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:48:57 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 20:48:57 + update-java-alternatives -l 20:48:57 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 20:48:57 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 20:48:57 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 20:48:57 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 20:48:57 update-alternatives: error: no alternatives for jaotc 20:48:57 update-alternatives: error: no alternatives for rmic 20:48:57 + java -version 20:48:57 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 20:48:57 + JAVA_VER=21.0 20:48:57 + echo 21.0 20:48:57 21.0 20:48:57 + javac -version 20:48:57 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 20:48:57 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 20:48:57 [INFO] Once installed this environment will be reused. 20:48:57 [INFO] This may take a few minutes... 20:48:57 21.0 20:48:57 No java21 or newer available 20:48:57 + JAVAC_VER=21.0 20:48:57 + echo 21.0 20:48:57 + [ 21.0 -ge 21 ] 20:48:57 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 20:48:57 + echo No java21 or newer available 20:48:57 + exit 1 20:48:57 buildcontroller: exit 1 (0.63 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=3854 20:48:57 buildcontroller: FAIL ✖ in 11.43 seconds 20:48:57 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 20:49:01 pylint: freeze> python -m pip freeze --all 20:49:01 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.13.0,pylint==4.1.3,setuptools==84.0.0,tomlkit==0.15.1 20:49:01 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 20:49:02 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 20:49:02 [INFO] Once installed this environment will be reused. 20:49:02 [INFO] This may take a few minutes... 20:49:04 docs: freeze> python -m pip freeze --all 20:49:04 docs-linkcheck: freeze> python -m pip freeze --all 20:49:04 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.2.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 20:49:04 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 20:49:05 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.2.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 20:49:05 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 20:49:07 [INFO] Installing environment for https://github.com/hhatto/autopep8. 20:49:07 [INFO] Once installed this environment will be reused. 20:49:07 [INFO] This may take a few minutes... 20:49:07 docs: OK ✔ in 21.09 seconds 20:49:07 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:49:09 docs-linkcheck: OK ✔ in 23.48 seconds 20:49:09 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:49:11 [INFO] Installing environment for https://github.com/perltidy/perltidy. 20:49:11 [INFO] Once installed this environment will be reused. 20:49:11 [INFO] This may take a few minutes... 20:49:13 build_karaf_tests221: freeze> python -m pip freeze --all 20:49:14 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:49:14 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 20:49:14 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 20:49:14 ./build_karaf_for_tests.sh: 22: mvn: not found 20:49:14 build karaf in karaf221 with ./karaf221.env 20:49:14 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 20:49:14 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4208 20:49:14 build_karaf_tests221: FAIL ✖ in 6.76 seconds 20:49:14 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:49:16 build_karaf_tests71: freeze> python -m pip freeze --all 20:49:16 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:49:16 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 20:49:16 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 20:49:16 ./build_karaf_for_tests.sh: 22: mvn: not found 20:49:16 build karaf in karaf71 with ./karaf71.env 20:49:16 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 20:49:16 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4231 20:49:16 build_karaf_tests71: FAIL ✖ in 6.61 seconds 20:49:16 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:49:18 ************* Module 2.2.1.test12_end2end 20:49:18 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 ************* Module common.test_utils 20:49:18 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 20:49:18 20:49:18 ----------------------------------- 20:49:18 Your code has been rated at 9.99/10 20:49:18 20:49:19 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 20:49:19 [INFO] Once installed this environment will be reused. 20:49:19 [INFO] This may take a few minutes... 20:49:19 pylint: exit 1 (17.96 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + pid=4090 20:49:19 pylint: FAIL ✖ in 21.92 seconds 20:49:19 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:49:20 build_karaf_tests200: freeze> python -m pip freeze --all 20:49:20 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:49:20 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 20:49:20 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 20:49:20 ./build_karaf_for_tests.sh: 22: mvn: not found 20:49:20 build karaf in karafoc200 with ./karafoc200.env 20:49:20 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 20:49:20 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4446 20:49:21 build_karaf_tests200: FAIL ✖ in 6.73 seconds 20:49:21 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:49:22 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 20:49:22 [INFO] Once installed this environment will be reused. 20:49:22 [INFO] This may take a few minutes... 20:49:23 buildlighty: freeze> python -m pip freeze --all 20:49:23 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:49:23 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 20:49:23 ./build.sh: 7: mvn: not found 20:49:23 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 20:49:23 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=4516 20:49:26 buildlighty: FAIL ✖ in 7.11 seconds 20:49:26 sims: freeze> python -m pip freeze --all 20:49:26 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:49:26 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 20:49:26 Using lighynode version 22.1.0.7 20:49:26 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 20:49:26 trim trailing whitespace.................................................Passed 20:49:27 fix end of files.........................................................Passed 20:49:27 check for added large files..............................................Passed 20:49:27 check for merge conflicts................................................Passed 20:49:27 check for case conflicts.................................................Passed 20:49:27 check json...............................................................Passed 20:49:27 mixed line ending........................................................Passed 20:49:28 Tabs remover.............................................................Passed 20:49:28 autopep8.................................................................Passed 20:49:30 perltidy.................................................................Passed 20:49:31 ShellCheck v0.11.0.......................................................Passed 20:49:36 prettier.................................................................Passed 20:49:37 yamllint.................................................................Passed 20:49:37 sims: OK ✔ in 10.37 seconds 20:49:37 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 20:49:37 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 20:49:37 [INFO] Once installed this environment will be reused. 20:49:37 [INFO] This may take a few minutes... 20:49:47 gitlint..................................................................Passed 20:50:12 pre-commit: OK ✔ in 57.86 seconds 20:50:12 testsPCE: freeze> python -m pip freeze --all 20:50:12 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.66.1,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.1,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 20:50:12 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 20:50:12 pytest -q transportpce_tests/pce/test01_pce.py 20:52:13 EEEEEEEEEEEEEEEEEEEE [100%] 20:52:16 ==================================== ERRORS ==================================== 20:52:16 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 20:52:16 20:52:16 cls = 20:52:16 20:52:16 @classmethod 20:52:16 def setUpClass(cls): 20:52:16 # pylint: disable=bare-except 20:52:16 sample_files_parsed = False 20:52:16 time.sleep(20) 20:52:16 try: 20:52:16 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:52:16 "..", "..", "sample_configs", "honeynode-topo.json") 20:52:16 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 20:52:16 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 20:52:16 20:52:16 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:52:16 "..", "..", "sample_configs", "NW-simple-topology.json") 20:52:16 20:52:16 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 20:52:16 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 20:52:16 20:52:16 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:52:16 "..", "..", "sample_configs", "NW-for-test-5-4.json") 20:52:16 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 20:52:16 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 20:52:16 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:52:16 "..", "..", "sample_configs", "pce_portmapping_221.json") 20:52:16 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 20:52:16 cls.port_mapping_data = port_mapping.read() 20:52:16 sample_files_parsed = True 20:52:16 except PermissionError as err: 20:52:16 print("Permission Error when trying to read sample files\n", err) 20:52:16 sys.exit(2) 20:52:16 except FileNotFoundError as err: 20:52:16 print("File Not found Error when trying to read sample files\n", err) 20:52:16 sys.exit(2) 20:52:16 except: 20:52:16 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 20:52:16 sys.exit(2) 20:52:16 finally: 20:52:16 if sample_files_parsed: 20:52:16 print("sample files content loaded") 20:52:16 20:52:16 > cls.processes = test_utils.start_tpce() 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 20:52:16 transportpce_tests/pce/test01_pce.py:93: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 def start_tpce(): 20:52:16 if 'NO_ODL_STARTUP' in os.environ: 20:52:16 print('No OpenDaylight instance to start!') 20:52:16 return [] 20:52:16 print('starting OpenDaylight...') 20:52:16 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:52:16 process = start_lighty() 20:52:16 else: 20:52:16 process = start_karaf() 20:52:16 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:52:16 print('OpenDaylight started !') 20:52:16 else: 20:52:16 print('OpenDaylight failed to start !') 20:52:16 shutdown_process(process) 20:52:16 for pid in process_list: 20:52:16 shutdown_process(pid) 20:52:16 > sys.exit(1) 20:52:16 E SystemExit: 1 20:52:16 20:52:16 transportpce_tests/common/test_utils.py:234: SystemExit 20:52:16 ---------------------------- Captured stdout setup ----------------------------- 20:52:16 sample files content loaded 20:52:16 starting OpenDaylight... 20:52:16 starting KARAF (karaf) TransportPCE build... 20:52:16 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:52:16 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd498b380> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a3c40> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a3420> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd498b380> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a31a0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a36a0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd4535da0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd498bec0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd498b380> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd498bec0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd4535940> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a31a0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd498b380> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd4536980> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a0540> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd498b380> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd45362a0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a31a0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 20:52:16 20:52:16 cls = 20:52:16 func = . at 0x7f7fd49a02c0> 20:52:16 when = 'setup' 20:52:16 reraise = (, ) 20:52:16 20:52:16 @classmethod 20:52:16 def from_call( 20:52:16 cls, 20:52:16 func: Callable[[], TResult], 20:52:16 when: Literal["collect", "setup", "call", "teardown"], 20:52:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:52:16 ) -> CallInfo[TResult]: 20:52:16 """Call func, wrapping the result in a CallInfo. 20:52:16 20:52:16 :param func: 20:52:16 The function to call. Called without arguments. 20:52:16 :type func: Callable[[], _pytest.runner.TResult] 20:52:16 :param when: 20:52:16 The phase in which the function is called. 20:52:16 :param reraise: 20:52:16 Exception or exceptions that shall propagate if raised by the 20:52:16 function, instead of being wrapped in the CallInfo. 20:52:16 """ 20:52:16 excinfo = None 20:52:16 instant = timing.Instant() 20:52:16 try: 20:52:16 > result: TResult | None = func() 20:52:16 ^^^^^^ 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:52:16 lambda: runtest_hook(item=item, **kwds), 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:52:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:52:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:52:16 yield 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:52:16 return (yield) 20:52:16 ^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:52:16 item.session._setupstate.setup(item) 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:52:16 col.setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:52:16 super().setup() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:52:16 self._request._fillfixtures() 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:52:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:52:16 fixturedef = self._get_active_fixturedef(argname) 20:52:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:52:16 fixturedef.execute(request=subrequest) 20:52:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:52:16 20:52:16 self = 20:52:16 request = > 20:52:16 20:52:16 def execute(self, request: SubRequest) -> FixtureValue: 20:52:16 """Return the value of this fixture, executing it if not cached.""" 20:52:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:52:16 # This needs to be done before checking if we have a cached value, since 20:52:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:52:16 # parametrization, they finalize themselves and fixtures depending on it 20:52:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:52:16 # See #4871 20:52:16 requested_fixtures_that_should_finalize_us = [] 20:52:16 for argname in self.argnames: 20:52:16 fixturedef = request._get_active_fixturedef(argname) 20:52:16 # Saves requested fixtures in a list so we later can add our finalizer 20:52:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:52:16 # down first. This is generally handled by SetupState, but still currently 20:52:16 # needed when this fixture is not parametrized but depends on a parametrized 20:52:16 # fixture. 20:52:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:52:16 20:52:16 # Check for (and return) cached value/exception. 20:52:16 if self.cached_result is not None: 20:52:16 request_cache_key = self.cache_key(request) 20:52:16 cache_key = self.cached_result[1] 20:52:16 try: 20:52:16 # Attempt to make a normal == check: this might fail for objects 20:52:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:52:16 cache_hit = bool(request_cache_key == cache_key) 20:52:16 except (ValueError, RuntimeError): 20:52:16 # If the comparison raises, use 'is' as fallback. 20:52:16 cache_hit = request_cache_key is cache_key 20:52:16 20:52:16 if cache_hit: 20:52:16 if self.cached_result[2] is not None: 20:52:16 exc, exc_tb = self.cached_result[2] 20:52:16 raise exc.with_traceback(exc_tb) 20:52:16 else: 20:52:16 return self.cached_result[0] 20:52:16 # We have a previous but differently parametrized fixture instance 20:52:16 # so we need to tear it down before creating a new one. 20:52:16 self.finish(request) 20:52:16 assert self.cached_result is None 20:52:16 20:52:16 # Add finalizer to requested fixtures we saved previously. 20:52:16 # We make sure to do this after checking for cached value to avoid 20:52:16 # adding our finalizer multiple times. (#12135) 20:52:16 finalizer = functools.partial(self.finish, request=request) 20:52:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:52:16 parent_fixture.addfinalizer(finalizer) 20:52:16 20:52:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:52:16 # which is executed last. 20:52:16 > assert not self._finalizers 20:52:16 ^^^^^^^^^^^^^^^^^^^^ 20:52:16 E AssertionError 20:52:16 20:52:16 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:52:16 =========================== short test summary info ============================ 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 20:52:16 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 20:52:16 20 errors in 123.96s (0:02:03) 20:52:16 testsPCE: exit 1 (124.28 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=5045 20:52:17 testsPCE: FAIL ✖ in 2 minutes 55.97 seconds 20:52:17 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:52:26 tests_tapi: freeze> python -m pip freeze --all 20:52:27 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:52:27 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 20:52:27 using environment variables from ./karaf221.env 20:52:27 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 20:54:07 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 20:54:16 ==================================== ERRORS ==================================== 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 20:54:16 20:54:16 cls = 20:54:16 20:54:16 @classmethod 20:54:16 def setUpClass(cls): 20:54:16 cls.init_failed = False 20:54:16 os.environ['JAVA_MIN_MEM'] = '1024M' 20:54:16 os.environ['JAVA_MAX_MEM'] = '4096M' 20:54:16 > cls.processes = test_utils.start_tpce() 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 20:54:16 transportpce_tests/tapi/test01_abstracted_topology.py:148: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 def start_tpce(): 20:54:16 if 'NO_ODL_STARTUP' in os.environ: 20:54:16 print('No OpenDaylight instance to start!') 20:54:16 return [] 20:54:16 print('starting OpenDaylight...') 20:54:16 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:54:16 process = start_lighty() 20:54:16 else: 20:54:16 process = start_karaf() 20:54:16 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:54:16 print('OpenDaylight started !') 20:54:16 else: 20:54:16 print('OpenDaylight failed to start !') 20:54:16 shutdown_process(process) 20:54:16 for pid in process_list: 20:54:16 shutdown_process(pid) 20:54:16 > sys.exit(1) 20:54:16 E SystemExit: 1 20:54:16 20:54:16 transportpce_tests/common/test_utils.py:234: SystemExit 20:54:16 ---------------------------- Captured stdout setup ----------------------------- 20:54:16 starting OpenDaylight... 20:54:16 starting KARAF (karaf221) TransportPCE build... 20:54:16 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9f740> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bdefc40> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4e493060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4d6fb060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bdef100> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9db20> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bdef6a0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4e493060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e2a0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4e493060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d6020> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4e493060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9da80> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d65c0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e480> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bdef100> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e480> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4e493060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4e493060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d5bc0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d5bc0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d4d60> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d47c0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d6ac0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d5300> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d6ac0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d5a80> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d6fc0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d5e40> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d6020> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d6340> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d6340> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d7240> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d7420> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d7560> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d63e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d5a80> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4bd9e8e0> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 20:54:16 20:54:16 cls = 20:54:16 func = . at 0x7f2f4b9d7060> 20:54:16 when = 'setup' 20:54:16 reraise = (, ) 20:54:16 20:54:16 @classmethod 20:54:16 def from_call( 20:54:16 cls, 20:54:16 func: Callable[[], TResult], 20:54:16 when: Literal["collect", "setup", "call", "teardown"], 20:54:16 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:54:16 ) -> CallInfo[TResult]: 20:54:16 """Call func, wrapping the result in a CallInfo. 20:54:16 20:54:16 :param func: 20:54:16 The function to call. Called without arguments. 20:54:16 :type func: Callable[[], _pytest.runner.TResult] 20:54:16 :param when: 20:54:16 The phase in which the function is called. 20:54:16 :param reraise: 20:54:16 Exception or exceptions that shall propagate if raised by the 20:54:16 function, instead of being wrapped in the CallInfo. 20:54:16 """ 20:54:16 excinfo = None 20:54:16 instant = timing.Instant() 20:54:16 try: 20:54:16 > result: TResult | None = func() 20:54:16 ^^^^^^ 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:54:16 lambda: runtest_hook(item=item, **kwds), 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:54:16 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:54:16 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:54:16 yield 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:54:16 return (yield) 20:54:16 ^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:54:16 item.session._setupstate.setup(item) 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:54:16 col.setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:54:16 super().setup() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:54:16 self._request._fillfixtures() 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:54:16 item.funcargs[argname] = self.getfixturevalue(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:54:16 fixturedef = self._get_active_fixturedef(argname) 20:54:16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:54:16 fixturedef.execute(request=subrequest) 20:54:16 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:54:16 20:54:16 self = 20:54:16 request = > 20:54:16 20:54:16 def execute(self, request: SubRequest) -> FixtureValue: 20:54:16 """Return the value of this fixture, executing it if not cached.""" 20:54:16 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:54:16 # This needs to be done before checking if we have a cached value, since 20:54:16 # if a dependent fixture has their cache invalidated, e.g. due to 20:54:16 # parametrization, they finalize themselves and fixtures depending on it 20:54:16 # (which will likely include this fixture) setting `self.cached_result = None`. 20:54:16 # See #4871 20:54:16 requested_fixtures_that_should_finalize_us = [] 20:54:16 for argname in self.argnames: 20:54:16 fixturedef = request._get_active_fixturedef(argname) 20:54:16 # Saves requested fixtures in a list so we later can add our finalizer 20:54:16 # to them, ensuring that if a requested fixture gets torn down we get torn 20:54:16 # down first. This is generally handled by SetupState, but still currently 20:54:16 # needed when this fixture is not parametrized but depends on a parametrized 20:54:16 # fixture. 20:54:16 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:54:16 20:54:16 # Check for (and return) cached value/exception. 20:54:16 if self.cached_result is not None: 20:54:16 request_cache_key = self.cache_key(request) 20:54:16 cache_key = self.cached_result[1] 20:54:16 try: 20:54:16 # Attempt to make a normal == check: this might fail for objects 20:54:16 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:54:16 cache_hit = bool(request_cache_key == cache_key) 20:54:16 except (ValueError, RuntimeError): 20:54:16 # If the comparison raises, use 'is' as fallback. 20:54:16 cache_hit = request_cache_key is cache_key 20:54:16 20:54:16 if cache_hit: 20:54:16 if self.cached_result[2] is not None: 20:54:16 exc, exc_tb = self.cached_result[2] 20:54:16 raise exc.with_traceback(exc_tb) 20:54:16 else: 20:54:16 return self.cached_result[0] 20:54:16 # We have a previous but differently parametrized fixture instance 20:54:16 # so we need to tear it down before creating a new one. 20:54:16 self.finish(request) 20:54:16 assert self.cached_result is None 20:54:16 20:54:16 # Add finalizer to requested fixtures we saved previously. 20:54:16 # We make sure to do this after checking for cached value to avoid 20:54:16 # adding our finalizer multiple times. (#12135) 20:54:16 finalizer = functools.partial(self.finish, request=request) 20:54:16 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:54:16 parent_fixture.addfinalizer(finalizer) 20:54:16 20:54:16 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:54:16 # which is executed last. 20:54:16 > assert not self._finalizers 20:54:16 ^^^^^^^^^^^^^^^^^^^^ 20:54:16 E AssertionError 20:54:16 20:54:16 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:54:16 =========================== short test summary info ============================ 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 20:54:16 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 20:54:16 51 errors in 109.68s (0:01:49) 20:54:17 tests_tapi: exit 1 (109.98 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=5116 20:54:17 tests_tapi: FAIL ✖ in 2 minutes 0.14 seconds 20:54:17 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:54:17 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:54:26 tests221: freeze> python -m pip freeze --all 20:54:26 tests200: freeze> python -m pip freeze --all 20:54:26 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:54:26 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 20:54:26 using environment variables from ./karaf221.env 20:54:26 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 20:54:27 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:54:27 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 20:54:27 using environment variables from ./karafoc200.env 20:54:27 pytest -q transportpce_tests/oc200/test01_portmapping.py 20:56:07 EEEEEEEEEEEEEEEEEEEE [100%] 20:56:09 ==================================== ERRORS ==================================== 20:56:09 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 20:56:09 20:56:09 cls = 20:56:09 20:56:09 @classmethod 20:56:09 def setUpClass(cls): 20:56:09 > cls.processes = test_utils.start_tpce() 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 20:56:09 transportpce_tests/oc200/test01_portmapping.py:29: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 def start_tpce(): 20:56:09 if 'NO_ODL_STARTUP' in os.environ: 20:56:09 print('No OpenDaylight instance to start!') 20:56:09 return [] 20:56:09 print('starting OpenDaylight...') 20:56:09 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:56:09 process = start_lighty() 20:56:09 else: 20:56:09 process = start_karaf() 20:56:09 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:56:09 print('OpenDaylight started !') 20:56:09 else: 20:56:09 print('OpenDaylight failed to start !') 20:56:09 shutdown_process(process) 20:56:09 for pid in process_list: 20:56:09 shutdown_process(pid) 20:56:09 > sys.exit(1) 20:56:09 E SystemExit: 1 20:56:09 20:56:09 transportpce_tests/common/test_utils.py:234: SystemExit 20:56:09 ---------------------------- Captured stdout setup ----------------------------- 20:56:09 starting OpenDaylight... 20:56:09 starting KARAF (karafoc200) TransportPCE build... 20:56:09 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:56:09 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f7061b63420> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f705f47bec0> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f7060c1b600> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f705f457740> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f7061b63420> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f7060c1b600> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f705f47b880> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f705f47b6a0> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 20:56:09 20:56:09 cls = 20:56:09 func = . at 0x7f705f47b600> 20:56:09 when = 'setup' 20:56:09 reraise = (, ) 20:56:09 20:56:09 @classmethod 20:56:09 def from_call( 20:56:09 cls, 20:56:09 func: Callable[[], TResult], 20:56:09 when: Literal["collect", "setup", "call", "teardown"], 20:56:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:09 ) -> CallInfo[TResult]: 20:56:09 """Call func, wrapping the result in a CallInfo. 20:56:09 20:56:09 :param func: 20:56:09 The function to call. Called without arguments. 20:56:09 :type func: Callable[[], _pytest.runner.TResult] 20:56:09 :param when: 20:56:09 The phase in which the function is called. 20:56:09 :param reraise: 20:56:09 Exception or exceptions that shall propagate if raised by the 20:56:09 function, instead of being wrapped in the CallInfo. 20:56:09 """ 20:56:09 excinfo = None 20:56:09 instant = timing.Instant() 20:56:09 try: 20:56:09 > result: TResult | None = func() 20:56:09 ^^^^^^ 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:09 lambda: runtest_hook(item=item, **kwds), 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:09 yield 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:09 return (yield) 20:56:09 ^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:09 item.session._setupstate.setup(item) 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:09 col.setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:09 super().setup() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:09 self._request._fillfixtures() 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:09 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:09 fixturedef = self._get_active_fixturedef(argname) 20:56:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:09 fixturedef.execute(request=subrequest) 20:56:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:09 20:56:09 self = 20:56:09 request = > 20:56:09 20:56:09 def execute(self, request: SubRequest) -> FixtureValue: 20:56:09 """Return the value of this fixture, executing it if not cached.""" 20:56:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:09 # This needs to be done before checking if we have a cached value, since 20:56:09 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:09 # parametrization, they finalize themselves and fixtures depending on it 20:56:09 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:09 # See #4871 20:56:09 requested_fixtures_that_should_finalize_us = [] 20:56:09 for argname in self.argnames: 20:56:09 fixturedef = request._get_active_fixturedef(argname) 20:56:09 # Saves requested fixtures in a list so we later can add our finalizer 20:56:09 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:09 # down first. This is generally handled by SetupState, but still currently 20:56:09 # needed when this fixture is not parametrized but depends on a parametrized 20:56:09 # fixture. 20:56:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:09 20:56:09 # Check for (and return) cached value/exception. 20:56:09 if self.cached_result is not None: 20:56:09 request_cache_key = self.cache_key(request) 20:56:09 cache_key = self.cached_result[1] 20:56:09 try: 20:56:09 # Attempt to make a normal == check: this might fail for objects 20:56:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:09 cache_hit = bool(request_cache_key == cache_key) 20:56:09 except (ValueError, RuntimeError): 20:56:09 # If the comparison raises, use 'is' as fallback. 20:56:09 cache_hit = request_cache_key is cache_key 20:56:09 20:56:09 if cache_hit: 20:56:09 if self.cached_result[2] is not None: 20:56:09 exc, exc_tb = self.cached_result[2] 20:56:09 raise exc.with_traceback(exc_tb) 20:56:09 else: 20:56:09 return self.cached_result[0] 20:56:09 # We have a previous but differently parametrized fixture instance 20:56:09 # so we need to tear it down before creating a new one. 20:56:09 self.finish(request) 20:56:09 assert self.cached_result is None 20:56:09 20:56:09 # Add finalizer to requested fixtures we saved previously. 20:56:09 # We make sure to do this after checking for cached value to avoid 20:56:09 # adding our finalizer multiple times. (#12135) 20:56:09 finalizer = functools.partial(self.finish, request=request) 20:56:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:09 parent_fixture.addfinalizer(finalizer) 20:56:09 20:56:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:09 # which is executed last. 20:56:09 > assert not self._finalizers 20:56:09 ^^^^^^^^^^^^^^^^^^^^ 20:56:09 E AssertionError 20:56:09 20:56:09 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:09 =========================== short test summary info ============================ 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 20:56:09 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 20:56:09 10 errors in 102.04s (0:01:42) 20:56:09 tests200: exit 1 (102.32 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=5263 20:56:09 Etests200: FAIL ✖ in 1 minute 52.37 seconds 20:56:09 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:56:09 EEEEEEEEEEEEEEEEEEEEEEEE [100%] 20:56:13 ==================================== ERRORS ==================================== 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 20:56:13 20:56:13 cls = 20:56:13 20:56:13 @classmethod 20:56:13 def setUpClass(cls): 20:56:13 > cls.processes = test_utils.start_tpce() 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 20:56:13 transportpce_tests/2.2.1/test01_portmapping.py:33: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 def start_tpce(): 20:56:13 if 'NO_ODL_STARTUP' in os.environ: 20:56:13 print('No OpenDaylight instance to start!') 20:56:13 return [] 20:56:13 print('starting OpenDaylight...') 20:56:13 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:56:13 process = start_lighty() 20:56:13 else: 20:56:13 process = start_karaf() 20:56:13 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:56:13 print('OpenDaylight started !') 20:56:13 else: 20:56:13 print('OpenDaylight failed to start !') 20:56:13 shutdown_process(process) 20:56:13 for pid in process_list: 20:56:13 shutdown_process(pid) 20:56:13 > sys.exit(1) 20:56:13 E SystemExit: 1 20:56:13 20:56:13 transportpce_tests/common/test_utils.py:234: SystemExit 20:56:13 ---------------------------- Captured stdout setup ----------------------------- 20:56:13 starting OpenDaylight... 20:56:13 starting KARAF (karaf221) TransportPCE build... 20:56:13 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:56:13 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca407100> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4072e0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ccb0f240> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca407100> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca405120> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca446d40> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca405120> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca447f60> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4479c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca405120> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca446520> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4479c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca447d80> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca405120> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4060c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca405f80> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4479c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca405f80> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4479c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54cbd1f060> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4dc4a0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4479c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4dd800> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4dc540> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4479c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4dd6c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 20:56:13 20:56:13 cls = 20:56:13 func = . at 0x7f54ca4479c0> 20:56:13 when = 'setup' 20:56:13 reraise = (, ) 20:56:13 20:56:13 @classmethod 20:56:13 def from_call( 20:56:13 cls, 20:56:13 func: Callable[[], TResult], 20:56:13 when: Literal["collect", "setup", "call", "teardown"], 20:56:13 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:56:13 ) -> CallInfo[TResult]: 20:56:13 """Call func, wrapping the result in a CallInfo. 20:56:13 20:56:13 :param func: 20:56:13 The function to call. Called without arguments. 20:56:13 :type func: Callable[[], _pytest.runner.TResult] 20:56:13 :param when: 20:56:13 The phase in which the function is called. 20:56:13 :param reraise: 20:56:13 Exception or exceptions that shall propagate if raised by the 20:56:13 function, instead of being wrapped in the CallInfo. 20:56:13 """ 20:56:13 excinfo = None 20:56:13 instant = timing.Instant() 20:56:13 try: 20:56:13 > result: TResult | None = func() 20:56:13 ^^^^^^ 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:56:13 lambda: runtest_hook(item=item, **kwds), 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:56:13 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:56:13 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:56:13 yield 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:56:13 return (yield) 20:56:13 ^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:56:13 item.session._setupstate.setup(item) 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:56:13 col.setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:56:13 super().setup() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:56:13 self._request._fillfixtures() 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:56:13 item.funcargs[argname] = self.getfixturevalue(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:56:13 fixturedef = self._get_active_fixturedef(argname) 20:56:13 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:56:13 fixturedef.execute(request=subrequest) 20:56:13 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:56:13 20:56:13 self = 20:56:13 request = > 20:56:13 20:56:13 def execute(self, request: SubRequest) -> FixtureValue: 20:56:13 """Return the value of this fixture, executing it if not cached.""" 20:56:13 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:56:13 # This needs to be done before checking if we have a cached value, since 20:56:13 # if a dependent fixture has their cache invalidated, e.g. due to 20:56:13 # parametrization, they finalize themselves and fixtures depending on it 20:56:13 # (which will likely include this fixture) setting `self.cached_result = None`. 20:56:13 # See #4871 20:56:13 requested_fixtures_that_should_finalize_us = [] 20:56:13 for argname in self.argnames: 20:56:13 fixturedef = request._get_active_fixturedef(argname) 20:56:13 # Saves requested fixtures in a list so we later can add our finalizer 20:56:13 # to them, ensuring that if a requested fixture gets torn down we get torn 20:56:13 # down first. This is generally handled by SetupState, but still currently 20:56:13 # needed when this fixture is not parametrized but depends on a parametrized 20:56:13 # fixture. 20:56:13 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:56:13 20:56:13 # Check for (and return) cached value/exception. 20:56:13 if self.cached_result is not None: 20:56:13 request_cache_key = self.cache_key(request) 20:56:13 cache_key = self.cached_result[1] 20:56:13 try: 20:56:13 # Attempt to make a normal == check: this might fail for objects 20:56:13 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:56:13 cache_hit = bool(request_cache_key == cache_key) 20:56:13 except (ValueError, RuntimeError): 20:56:13 # If the comparison raises, use 'is' as fallback. 20:56:13 cache_hit = request_cache_key is cache_key 20:56:13 20:56:13 if cache_hit: 20:56:13 if self.cached_result[2] is not None: 20:56:13 exc, exc_tb = self.cached_result[2] 20:56:13 raise exc.with_traceback(exc_tb) 20:56:13 else: 20:56:13 return self.cached_result[0] 20:56:13 # We have a previous but differently parametrized fixture instance 20:56:13 # so we need to tear it down before creating a new one. 20:56:13 self.finish(request) 20:56:13 assert self.cached_result is None 20:56:13 20:56:13 # Add finalizer to requested fixtures we saved previously. 20:56:13 # We make sure to do this after checking for cached value to avoid 20:56:13 # adding our finalizer multiple times. (#12135) 20:56:13 finalizer = functools.partial(self.finish, request=request) 20:56:13 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:56:13 parent_fixture.addfinalizer(finalizer) 20:56:13 20:56:13 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:56:13 # which is executed last. 20:56:13 > assert not self._finalizers 20:56:13 ^^^^^^^^^^^^^^^^^^^^ 20:56:13 E AssertionError 20:56:13 20:56:13 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:56:13 =========================== short test summary info ============================ 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 20:56:13 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 20:56:13 35 errors in 106.67s (0:01:46) 20:56:13 tests221: exit 1 (106.96 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=5252 20:56:14 tests221: FAIL ✖ in 1 minute 56.89 seconds 20:56:14 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 20:56:19 tests71: freeze> python -m pip freeze --all 20:56:19 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:56:19 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 20:56:19 using environment variables from ./karaf71.env 20:56:19 pytest -q transportpce_tests/7.1/test01_portmapping.py 20:56:20 tests_hybrid: freeze> python -m pip freeze --all 20:56:20 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,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.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 20:56:20 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 20:56:20 using environment variables from ./karaf221.env 20:56:20 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 20:57:59 EEEEEEEEEEEEEEEE [100%] 20:58:01 ==================================== ERRORS ==================================== 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 20:58:01 20:58:01 cls = 20:58:01 20:58:01 @classmethod 20:58:01 def setUpClass(cls): 20:58:01 > cls.processes = test_utils.start_tpce() 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 20:58:01 transportpce_tests/7.1/test01_portmapping.py:32: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 def start_tpce(): 20:58:01 if 'NO_ODL_STARTUP' in os.environ: 20:58:01 print('No OpenDaylight instance to start!') 20:58:01 return [] 20:58:01 print('starting OpenDaylight...') 20:58:01 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:58:01 process = start_lighty() 20:58:01 else: 20:58:01 process = start_karaf() 20:58:01 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:58:01 print('OpenDaylight started !') 20:58:01 else: 20:58:01 print('OpenDaylight failed to start !') 20:58:01 shutdown_process(process) 20:58:01 for pid in process_list: 20:58:01 shutdown_process(pid) 20:58:01 > sys.exit(1) 20:58:01 E SystemExit: 1 20:58:01 20:58:01 transportpce_tests/common/test_utils.py:234: SystemExit 20:58:01 ---------------------------- Captured stdout setup ----------------------------- 20:58:01 starting OpenDaylight... 20:58:01 starting KARAF (karaf71) TransportPCE build... 20:58:01 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f240bc2f4c0> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f2409517a60> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f240ae32fc0> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f240bc2f2e0> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f24095177e0> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f240ae32fc0> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f2409517a60> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f2409515120> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f24095177e0> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f2409517600> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 20:58:01 20:58:01 cls = 20:58:01 func = . at 0x7f2409515120> 20:58:01 when = 'setup' 20:58:01 reraise = (, ) 20:58:01 20:58:01 @classmethod 20:58:01 def from_call( 20:58:01 cls, 20:58:01 func: Callable[[], TResult], 20:58:01 when: Literal["collect", "setup", "call", "teardown"], 20:58:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:01 ) -> CallInfo[TResult]: 20:58:01 """Call func, wrapping the result in a CallInfo. 20:58:01 20:58:01 :param func: 20:58:01 The function to call. Called without arguments. 20:58:01 :type func: Callable[[], _pytest.runner.TResult] 20:58:01 :param when: 20:58:01 The phase in which the function is called. 20:58:01 :param reraise: 20:58:01 Exception or exceptions that shall propagate if raised by the 20:58:01 function, instead of being wrapped in the CallInfo. 20:58:01 """ 20:58:01 excinfo = None 20:58:01 instant = timing.Instant() 20:58:01 try: 20:58:01 > result: TResult | None = func() 20:58:01 ^^^^^^ 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:01 lambda: runtest_hook(item=item, **kwds), 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:01 yield 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:01 return (yield) 20:58:01 ^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:01 item.session._setupstate.setup(item) 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:01 col.setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:01 super().setup() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:01 self._request._fillfixtures() 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:01 fixturedef = self._get_active_fixturedef(argname) 20:58:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:01 fixturedef.execute(request=subrequest) 20:58:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:01 20:58:01 self = 20:58:01 request = > 20:58:01 20:58:01 def execute(self, request: SubRequest) -> FixtureValue: 20:58:01 """Return the value of this fixture, executing it if not cached.""" 20:58:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:01 # This needs to be done before checking if we have a cached value, since 20:58:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:01 # parametrization, they finalize themselves and fixtures depending on it 20:58:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:01 # See #4871 20:58:01 requested_fixtures_that_should_finalize_us = [] 20:58:01 for argname in self.argnames: 20:58:01 fixturedef = request._get_active_fixturedef(argname) 20:58:01 # Saves requested fixtures in a list so we later can add our finalizer 20:58:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:01 # down first. This is generally handled by SetupState, but still currently 20:58:01 # needed when this fixture is not parametrized but depends on a parametrized 20:58:01 # fixture. 20:58:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:01 20:58:01 # Check for (and return) cached value/exception. 20:58:01 if self.cached_result is not None: 20:58:01 request_cache_key = self.cache_key(request) 20:58:01 cache_key = self.cached_result[1] 20:58:01 try: 20:58:01 # Attempt to make a normal == check: this might fail for objects 20:58:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:01 cache_hit = bool(request_cache_key == cache_key) 20:58:01 except (ValueError, RuntimeError): 20:58:01 # If the comparison raises, use 'is' as fallback. 20:58:01 cache_hit = request_cache_key is cache_key 20:58:01 20:58:01 if cache_hit: 20:58:01 if self.cached_result[2] is not None: 20:58:01 exc, exc_tb = self.cached_result[2] 20:58:01 raise exc.with_traceback(exc_tb) 20:58:01 else: 20:58:01 return self.cached_result[0] 20:58:01 # We have a previous but differently parametrized fixture instance 20:58:01 # so we need to tear it down before creating a new one. 20:58:01 self.finish(request) 20:58:01 assert self.cached_result is None 20:58:01 20:58:01 # Add finalizer to requested fixtures we saved previously. 20:58:01 # We make sure to do this after checking for cached value to avoid 20:58:01 # adding our finalizer multiple times. (#12135) 20:58:01 finalizer = functools.partial(self.finish, request=request) 20:58:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:01 parent_fixture.addfinalizer(finalizer) 20:58:01 20:58:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:01 # which is executed last. 20:58:01 > assert not self._finalizers 20:58:01 ^^^^^^^^^^^^^^^^^^^^ 20:58:01 E AssertionError 20:58:01 20:58:01 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:01 =========================== short test summary info ============================ 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 20:58:01 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 20:58:01 12 errors in 102.43s (0:01:42) 20:58:01 Etests71: exit 1 (102.69 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=5391 20:58:02 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 20:58:10 ==================================== ERRORS ==================================== 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 20:58:10 20:58:10 cls = 20:58:10 20:58:10 @classmethod 20:58:10 def setUpClass(cls): 20:58:10 > cls.processes = test_utils.start_tpce() 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 20:58:10 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 def start_tpce(): 20:58:10 if 'NO_ODL_STARTUP' in os.environ: 20:58:10 print('No OpenDaylight instance to start!') 20:58:10 return [] 20:58:10 print('starting OpenDaylight...') 20:58:10 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:58:10 process = start_lighty() 20:58:10 else: 20:58:10 process = start_karaf() 20:58:10 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:58:10 print('OpenDaylight started !') 20:58:10 else: 20:58:10 print('OpenDaylight failed to start !') 20:58:10 shutdown_process(process) 20:58:10 for pid in process_list: 20:58:10 shutdown_process(pid) 20:58:10 > sys.exit(1) 20:58:10 E SystemExit: 1 20:58:10 20:58:10 transportpce_tests/common/test_utils.py:234: SystemExit 20:58:10 ---------------------------- Captured stdout setup ----------------------------- 20:58:10 starting OpenDaylight... 20:58:10 starting KARAF (karaf221) TransportPCE build... 20:58:10 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f0aa20> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ff60> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca7960af20> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f09440> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca788793a0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f09440> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5e700> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5e980> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5e700> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f09440> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935940> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5e700> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f09440> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935da0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f09440> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f098a0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5e8e0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f098a0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5e8e0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca769360c0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca769360c0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76934860> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935440> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935260> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca769356c0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935800> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935d00> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935800> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935f80> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76934ea0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935a80> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935a80> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76936a20> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca769359e0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935bc0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76935f80> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca769365c0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca76f5ed40> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 20:58:10 20:58:10 cls = 20:58:10 func = . at 0x7fca769362a0> 20:58:10 when = 'setup' 20:58:10 reraise = (, ) 20:58:10 20:58:10 @classmethod 20:58:10 def from_call( 20:58:10 cls, 20:58:10 func: Callable[[], TResult], 20:58:10 when: Literal["collect", "setup", "call", "teardown"], 20:58:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:58:10 ) -> CallInfo[TResult]: 20:58:10 """Call func, wrapping the result in a CallInfo. 20:58:10 20:58:10 :param func: 20:58:10 The function to call. Called without arguments. 20:58:10 :type func: Callable[[], _pytest.runner.TResult] 20:58:10 :param when: 20:58:10 The phase in which the function is called. 20:58:10 :param reraise: 20:58:10 Exception or exceptions that shall propagate if raised by the 20:58:10 function, instead of being wrapped in the CallInfo. 20:58:10 """ 20:58:10 excinfo = None 20:58:10 instant = timing.Instant() 20:58:10 try: 20:58:10 > result: TResult | None = func() 20:58:10 ^^^^^^ 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:58:10 lambda: runtest_hook(item=item, **kwds), 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:58:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:58:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:58:10 yield 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:58:10 return (yield) 20:58:10 ^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:58:10 item.session._setupstate.setup(item) 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:58:10 col.setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:58:10 super().setup() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:58:10 self._request._fillfixtures() 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:58:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:58:10 fixturedef = self._get_active_fixturedef(argname) 20:58:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:58:10 fixturedef.execute(request=subrequest) 20:58:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:58:10 20:58:10 self = 20:58:10 request = > 20:58:10 20:58:10 def execute(self, request: SubRequest) -> FixtureValue: 20:58:10 """Return the value of this fixture, executing it if not cached.""" 20:58:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:58:10 # This needs to be done before checking if we have a cached value, since 20:58:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:58:10 # parametrization, they finalize themselves and fixtures depending on it 20:58:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:58:10 # See #4871 20:58:10 requested_fixtures_that_should_finalize_us = [] 20:58:10 for argname in self.argnames: 20:58:10 fixturedef = request._get_active_fixturedef(argname) 20:58:10 # Saves requested fixtures in a list so we later can add our finalizer 20:58:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:58:10 # down first. This is generally handled by SetupState, but still currently 20:58:10 # needed when this fixture is not parametrized but depends on a parametrized 20:58:10 # fixture. 20:58:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:58:10 20:58:10 # Check for (and return) cached value/exception. 20:58:10 if self.cached_result is not None: 20:58:10 request_cache_key = self.cache_key(request) 20:58:10 cache_key = self.cached_result[1] 20:58:10 try: 20:58:10 # Attempt to make a normal == check: this might fail for objects 20:58:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:58:10 cache_hit = bool(request_cache_key == cache_key) 20:58:10 except (ValueError, RuntimeError): 20:58:10 # If the comparison raises, use 'is' as fallback. 20:58:10 cache_hit = request_cache_key is cache_key 20:58:10 20:58:10 if cache_hit: 20:58:10 if self.cached_result[2] is not None: 20:58:10 exc, exc_tb = self.cached_result[2] 20:58:10 raise exc.with_traceback(exc_tb) 20:58:10 else: 20:58:10 return self.cached_result[0] 20:58:10 # We have a previous but differently parametrized fixture instance 20:58:10 # so we need to tear it down before creating a new one. 20:58:10 self.finish(request) 20:58:10 assert self.cached_result is None 20:58:10 20:58:10 # Add finalizer to requested fixtures we saved previously. 20:58:10 # We make sure to do this after checking for cached value to avoid 20:58:10 # adding our finalizer multiple times. (#12135) 20:58:10 finalizer = functools.partial(self.finish, request=request) 20:58:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:58:10 parent_fixture.addfinalizer(finalizer) 20:58:10 20:58:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:58:10 # which is executed last. 20:58:10 > assert not self._finalizers 20:58:10 ^^^^^^^^^^^^^^^^^^^^ 20:58:10 E AssertionError 20:58:10 20:58:10 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:58:10 =========================== short test summary info ============================ 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 20:58:10 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 20:58:10 51 errors in 109.80s (0:01:49) 20:58:10 tests71: FAIL ✖ in 1 minute 52.55 seconds 20:58:10 tests_hybrid: exit 1 (110.09 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=5406 20:58:10 buildcontroller: FAIL code 1 (11.43=setup[10.80]+cmd[0.63] seconds) 20:58:10 sims: OK (10.37=setup[7.06]+cmd[3.31] seconds) 20:58:10 testsPCE: FAIL code 1 (175.97=setup[51.69]+cmd[124.28] seconds) 20:58:10 build_karaf_tests221: FAIL code 127 (6.75=setup[6.75]+cmd[0.00] seconds) 20:58:10 tests_tapi: FAIL code 1 (120.14=setup[10.16]+cmd[109.98] seconds) 20:58:10 tests221: FAIL code 1 (116.89=setup[9.93]+cmd[106.96] seconds) 20:58:10 build_karaf_tests71: FAIL code 127 (6.61=setup[6.60]+cmd[0.01] seconds) 20:58:10 tests71: FAIL code 1 (112.55=setup[9.86]+cmd[102.69] seconds) 20:58:10 build_karaf_tests200: FAIL code 127 (6.73=setup[6.73]+cmd[0.00] seconds) 20:58:10 tests200: FAIL code 1 (112.37=setup[10.05]+cmd[102.32] seconds) 20:58:10 tests_hybrid: FAIL code 1 (116.78=setup[6.69]+cmd[110.09] seconds) 20:58:10 buildlighty: FAIL code 9 (7.11=setup[7.09]+cmd[0.01] seconds) 20:58:10 docs: OK (21.09=setup[18.58]+cmd[2.51] seconds) 20:58:10 docs-linkcheck: OK (23.47=setup[18.74]+cmd[4.73] seconds) 20:58:10 checkbashisms: OK (3.15=setup[1.95]+cmd[0.01,0.04,1.15] seconds) 20:58:10 pre-commit: OK (57.86=setup[3.50]+cmd[0.00,0.01,44.70,9.66] seconds) 20:58:10 pylint: FAIL code 1 (21.92=setup[3.96]+cmd[17.96] seconds) 20:58:10 evaluation failed :( (564.42 seconds) 20:58:10 + tox_status=1 20:58:10 + echo '---> Completed tox runs' 20:58:10 ---> Completed tox runs 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/build_karaf_tests200/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=build_karaf_tests200 20:58:10 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/build_karaf_tests221/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=build_karaf_tests221 20:58:10 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/build_karaf_tests71/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=build_karaf_tests71 20:58:10 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/buildcontroller/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=buildcontroller 20:58:10 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/buildlighty/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=buildlighty 20:58:10 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/checkbashisms/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=checkbashisms 20:58:10 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/docs-linkcheck/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=docs-linkcheck 20:58:10 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/docs/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=docs 20:58:10 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/pre-commit/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=pre-commit 20:58:10 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/pylint/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=pylint 20:58:10 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/sims/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=sims 20:58:10 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/tests200/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=tests200 20:58:10 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/tests221/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=tests221 20:58:10 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/tests71/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=tests71 20:58:10 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/testsPCE/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=testsPCE 20:58:10 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 20:58:10 + for i in .tox/*/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 ++ echo .tox/tests_hybrid/log 20:58:10 + tox_env=tests_hybrid 20:58:10 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 20:58:10 + for i in .tox/*/log 20:58:10 ++ echo .tox/tests_tapi/log 20:58:10 ++ awk -F/ '{print $2}' 20:58:10 + tox_env=tests_tapi 20:58:10 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 20:58:10 + DOC_DIR=docs/_build/html 20:58:10 + [[ -d docs/_build/html ]] 20:58:10 + echo '---> Archiving generated docs' 20:58:10 ---> Archiving generated docs 20:58:10 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 20:58:10 + echo '---> tox-run.sh ends' 20:58:10 ---> tox-run.sh ends 20:58:10 + test 1 -eq 0 20:58:10 + exit 1 20:58:10 ++ '[' 1 = 1 ']' 20:58:10 ++ '[' -x /usr/bin/clear_console ']' 20:58:10 ++ /usr/bin/clear_console -q 20:58:10 Build step 'Execute shell' marked build as failure 20:58:10 $ ssh-agent -k 20:58:10 unset SSH_AUTH_SOCK; 20:58:10 unset SSH_AGENT_PID; 20:58:10 echo Agent pid 2438 killed; 20:58:10 [ssh-agent] Stopped. 20:58:11 [PostBuildScript] - [INFO] Executing post build scripts. 20:58:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3917269140460355871.sh 20:58:11 ---> sysstat.sh 20:58:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1312100028880559419.sh 20:58:11 ---> package-listing.sh 20:58:11 + '[' -f /etc/os-release ']' 20:58:11 + . /etc/os-release 20:58:11 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 20:58:11 ++ NAME=Ubuntu 20:58:11 ++ VERSION_ID=22.04 20:58:11 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 20:58:11 ++ VERSION_CODENAME=jammy 20:58:11 ++ ID=ubuntu 20:58:11 ++ ID_LIKE=debian 20:58:11 ++ HOME_URL=https://www.ubuntu.com/ 20:58:11 ++ SUPPORT_URL=https://help.ubuntu.com/ 20:58:11 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 20:58:11 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 20:58:11 ++ UBUNTU_CODENAME=jammy 20:58:11 + case " ${ID:-} ${ID_LIKE:-} " in 20:58:11 + OS_FAMILY=debian 20:58:11 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 20:58:11 + START_PACKAGES=/tmp/packages_start.txt 20:58:11 + END_PACKAGES=/tmp/packages_end.txt 20:58:11 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:58:11 + PACKAGES=/tmp/packages_start.txt 20:58:11 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 20:58:11 + PACKAGES=/tmp/packages_end.txt 20:58:11 + case "${OS_FAMILY}" in 20:58:11 + grep '^ii' 20:58:11 + dpkg -l 20:58:11 + '[' -f /tmp/packages_start.txt ']' 20:58:11 + '[' -f /tmp/packages_end.txt ']' 20:58:11 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:58:11 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 20:58:11 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 20:58:11 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 20:58:11 + exit 0 20:58:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17015588348432281772.sh 20:58:11 ---> capture-instance-metadata.sh 20:58:11 Setup pyenv: 20:58:11 system 20:58:11 3.8.20 20:58:11 3.9.20 20:58:11 3.10.15 20:58:11 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 20:58:11 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-C3w1 from file:/tmp/.os_lf_venv 20:58:11 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:58:14 lf-activate-venv(): INFO: Installing additional packages: lftools 20:58:34 lf-activate-venv(): INFO: Adding /tmp/venv-C3w1/bin to PATH 20:58:34 INFO: Running in OpenStack, capturing instance metadata 20:58:34 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3974284263531805792.sh 20:58:34 provisioning config files... 20:58:35 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6294 20:58:35 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config10485807131544574047tmp 20:58:35 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 20:58:35 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 20:58:35 provisioning config files... 20:58:35 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 20:58:35 [EnvInject] - Injecting environment variables from a build step. 20:58:35 [EnvInject] - Injecting as environment variables the properties content 20:58:35 SERVER_ID=logs 20:58:35 20:58:35 [EnvInject] - Variables injected successfully. 20:58:35 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10130365029246642771.sh 20:58:35 ---> create-netrc.sh 20:58:35 WARN: Log server credential not found. 20:58:35 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17869488716604610752.sh 20:58:35 ---> python-tools-install.sh 20:58:35 Setup pyenv: 20:58:35 system 20:58:35 3.8.20 20:58:35 3.9.20 20:58:35 3.10.15 20:58:35 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 20:58:35 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-C3w1 from file:/tmp/.os_lf_venv 20:58:35 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:58:37 lf-activate-venv(): INFO: Installing additional packages: lftools 20:58:46 lf-activate-venv(): INFO: Adding /tmp/venv-C3w1/bin to PATH 20:58:46 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins18230256564911127681.sh 20:58:46 ---> uv-install.sh 20:58:46 uv 0.13.0 is already installed 20:58:46 uvx 0.13.0 (x86_64-unknown-linux-gnu) 20:58:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins326655537263162989.sh 20:58:46 ---> sudo-logs.sh 20:58:46 Archiving 'sudo' log.. 20:58:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8089982039067081034.sh 20:58:46 ---> job-cost.sh 20:58:46 INFO: Activating Python virtual environment... 20:58:46 Setup pyenv: 20:58:47 system 20:58:47 3.8.20 20:58:47 3.9.20 20:58:47 3.10.15 20:58:47 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 20:58:47 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-C3w1 from file:/tmp/.os_lf_venv 20:58:47 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:58:48 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 20:58:58 lf-activate-venv(): INFO: Adding /tmp/venv-C3w1/bin to PATH 20:58:58 INFO: No stack-cost file found 20:58:58 INFO: Instance uptime: 11214s 20:58:58 INFO: Fetching instance metadata (attempt 1 of 3)... 20:58:58 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 20:58:58 INFO: Successfully fetched instance metadata 20:58:58 INFO: Instance type: v3-standard-4 20:58:58 INFO: Retrieving pricing info for: v3-standard-4 20:58:58 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 20:58:58 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=11214 20:58:59 INFO: Successfully fetched Vexxhost pricing API 20:58:59 INFO: Retrieved cost: 0.44 20:58:59 INFO: Retrieved resource: v3-standard-4 20:58:59 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 20:58:59 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 20:58:59 INFO: Successfully archived job cost data 20:58:59 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6294,2026-10-13 20:58:59,v3-standard-4,11214,0.44,0.00,FAILURE 20:58:59 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins2891841242910918215.sh 20:58:59 ---> logs-deploy.sh 20:58:59 Setup pyenv: 20:58:59 system 20:58:59 3.8.20 20:58:59 3.9.20 20:58:59 3.10.15 20:58:59 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 20:58:59 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-C3w1 from file:/tmp/.os_lf_venv 20:58:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:59:01 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 20:59:10 lf-activate-venv(): INFO: Adding /tmp/venv-C3w1/bin to PATH 20:59:10 WARNING: Nexus logging server not set 20:59:10 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6294/ 20:59:10 INFO: archiving logs to S3 20:59:11 ---> uname -a: 20:59:11 Linux prd-ubuntu2204-docker-4c-16g-64948 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 20:59:11 20:59:11 20:59:11 ---> lscpu: 20:59:11 Architecture: x86_64 20:59:11 CPU op-mode(s): 32-bit, 64-bit 20:59:11 Address sizes: 40 bits physical, 48 bits virtual 20:59:11 Byte Order: Little Endian 20:59:11 CPU(s): 4 20:59:11 On-line CPU(s) list: 0-3 20:59:11 Vendor ID: AuthenticAMD 20:59:11 Model name: AMD EPYC-Rome Processor 20:59:11 CPU family: 23 20:59:11 Model: 49 20:59:11 Thread(s) per core: 1 20:59:11 Core(s) per socket: 1 20:59:11 Socket(s): 4 20:59:11 Stepping: 0 20:59:11 BogoMIPS: 5599.99 20:59:11 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 20:59:11 Virtualization: AMD-V 20:59:11 Hypervisor vendor: KVM 20:59:11 Virtualization type: full 20:59:11 L1d cache: 128 KiB (4 instances) 20:59:11 L1i cache: 128 KiB (4 instances) 20:59:11 L2 cache: 2 MiB (4 instances) 20:59:11 L3 cache: 64 MiB (4 instances) 20:59:11 NUMA node(s): 1 20:59:11 NUMA node0 CPU(s): 0-3 20:59:11 Vulnerability Gather data sampling: Not affected 20:59:11 Vulnerability Indirect target selection: Not affected 20:59:11 Vulnerability Itlb multihit: Not affected 20:59:11 Vulnerability L1tf: Not affected 20:59:11 Vulnerability Mds: Not affected 20:59:11 Vulnerability Meltdown: Not affected 20:59:11 Vulnerability Mmio stale data: Not affected 20:59:11 Vulnerability Reg file data sampling: Not affected 20:59:11 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 20:59:11 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 20:59:11 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 20:59:11 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 20:59:11 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 20:59:11 Vulnerability Srbds: Not affected 20:59:11 Vulnerability Tsa: Not affected 20:59:11 Vulnerability Tsx async abort: Not affected 20:59:11 Vulnerability Vmscape: Not affected 20:59:11 20:59:11 20:59:11 ---> nproc: 20:59:11 4 20:59:11 20:59:11 20:59:11 ---> df -h: 20:59:11 Filesystem Size Used Avail Use% Mounted on 20:59:11 tmpfs 1.6G 1.1M 1.6G 1% /run 20:59:11 /dev/vda1 78G 11G 67G 15% / 20:59:11 tmpfs 7.9G 0 7.9G 0% /dev/shm 20:59:11 tmpfs 5.0M 0 5.0M 0% /run/lock 20:59:11 /dev/vda15 105M 6.1M 99M 6% /boot/efi 20:59:11 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 20:59:11 20:59:11 20:59:11 ---> free -m: 20:59:11 total used free shared buff/cache available 20:59:11 Mem: 15989 722 9693 4 5573 14923 20:59:11 Swap: 1023 0 1023 20:59:11 20:59:11 20:59:11 ---> ip addr: 20:59:11 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 20:59:11 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 20:59:11 inet 127.0.0.1/8 scope host lo 20:59:11 valid_lft forever preferred_lft forever 20:59:11 inet6 ::1/128 scope host 20:59:11 valid_lft forever preferred_lft forever 20:59:11 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 20:59:11 link/ether fa:16:3e:77:e8:4b brd ff:ff:ff:ff:ff:ff 20:59:11 altname enp0s3 20:59:11 inet 10.30.170.44/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 20:59:11 valid_lft 75182sec preferred_lft 75182sec 20:59:11 inet6 fe80::f816:3eff:fe77:e84b/64 scope link 20:59:11 valid_lft forever preferred_lft forever 20:59:11 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 20:59:11 link/ether 9a:04:ff:0e:ce:fb brd ff:ff:ff:ff:ff:ff 20:59:11 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 20:59:11 valid_lft forever preferred_lft forever 20:59:11 inet6 fe80::9804:ffff:fe0e:cefb/64 scope link 20:59:11 valid_lft forever preferred_lft forever 20:59:11 20:59:11 20:59:11 ---> sar -b -r -n DEV: 20:59:11 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-64948) 10/13/26 _x86_64_ (4 CPU) 20:59:11 20:59:11 17:52:17 LINUX RESTART (4 CPU) 20:59:11 20:59:11 18:00:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 20:59:11 18:10:23 1.15 0.00 1.14 0.00 0.04 14.67 0.42 20:59:11 18:20:23 1.16 0.00 1.15 0.00 0.01 13.60 0.00 20:59:11 18:30:01 1.20 0.00 1.20 0.00 0.00 13.92 0.12 20:59:11 18:40:24 1.10 0.00 1.10 0.00 0.00 12.65 0.00 20:59:11 18:50:24 1.28 0.00 1.28 0.00 0.00 14.02 0.00 20:59:11 19:00:01 14.68 0.00 1.28 13.39 0.15 14.36 252056.30 20:59:11 19:10:25 1.27 0.00 1.27 0.00 0.00 14.30 0.00 20:59:11 19:20:25 1.54 0.00 1.54 0.00 0.00 17.05 0.00 20:59:11 19:30:01 1.51 0.00 1.51 0.00 0.00 16.54 0.00 20:59:11 19:40:26 1.51 0.00 1.51 0.00 0.00 16.63 0.00 20:59:11 19:50:27 1.51 0.00 1.51 0.00 0.00 16.60 0.00 20:59:11 20:00:01 1.57 0.00 1.57 0.00 0.00 17.13 0.00 20:59:11 20:10:28 1.56 0.00 1.56 0.00 0.00 17.48 0.00 20:59:11 20:20:28 1.54 0.00 1.54 0.00 0.00 16.91 0.00 20:59:11 20:30:01 1.51 0.00 1.51 0.00 0.00 16.79 0.00 20:59:11 20:40:28 1.48 0.00 1.48 0.00 0.00 16.35 0.00 20:59:11 20:50:28 73.32 6.77 63.46 3.10 741.99 8851.39 3752.49 20:59:11 Average: 6.36 0.40 5.03 0.94 43.54 533.96 14444.43 20:59:11 20:59:11 18:00:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 20:59:11 18:10:23 13587072 15506468 509692 3.11 56408 2089596 1165252 6.69 251092 2273484 152 20:59:11 18:20:23 13586316 15506252 509808 3.11 56796 2089736 1165252 6.69 251484 2274384 12 20:59:11 18:30:01 13585308 15505624 510568 3.12 57164 2089744 1165252 6.69 251840 2274240 204 20:59:11 18:40:24 13585176 15506028 510220 3.12 57540 2089884 1165252 6.69 252244 2276064 188 20:59:11 18:50:24 13584832 15506048 510176 3.12 57900 2089880 1165252 6.69 252580 2276872 16 20:59:11 19:00:01 13581316 15508036 508104 3.10 58540 2094728 1165252 6.69 257992 2276912 8 20:59:11 19:10:25 13573000 15500116 516044 3.15 58916 2094736 1165444 6.69 258368 2283200 12 20:59:11 19:20:25 13571996 15499704 516296 3.15 59496 2094748 1165444 6.69 258940 2283032 16 20:59:11 19:30:01 13571504 15499936 516124 3.15 60056 2094880 1165444 6.69 259524 2282588 204 20:59:11 19:40:26 13571000 15500028 516084 3.15 60632 2094892 1173700 6.74 260092 2283220 16 20:59:11 19:50:27 13570004 15499636 516420 3.15 61192 2094904 1173700 6.74 260660 2283444 20 20:59:11 20:00:01 13569504 15499644 516396 3.15 61744 2094912 1173700 6.74 261156 2282548 204 20:59:11 20:10:28 13569000 15499920 516212 3.15 62384 2094988 1173812 6.74 261852 2282712 16 20:59:11 20:20:28 13568244 15499848 516228 3.15 62952 2095120 1173764 6.74 262396 2282688 16 20:59:11 20:30:01 13567740 15500048 516104 3.15 63520 2095260 1183088 6.79 262956 2283688 204 20:59:11 20:40:28 13567740 15500656 515452 3.15 64104 2095268 1181956 6.78 263548 2283172 44 20:59:11 20:50:28 10350044 15270684 678368 4.14 174452 4761500 1404536 8.06 602324 4882964 352328 20:59:11 Average: 13385870 15488746 523429 3.20 66694 2250281 1183888 6.80 278179 2433248 20804 20:59:11 20:59:11 18:00:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 20:59:11 18:10:23 lo 0.12 0.12 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 18:10:23 ens3 0.50 0.11 0.07 0.04 0.00 0.00 0.00 0.00 20:59:11 18:10:23 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 18:20:23 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 18:20:23 ens3 0.33 0.07 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 18:20:23 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 18:30:01 lo 0.09 0.09 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 18:30:01 ens3 0.39 0.11 0.08 0.03 0.00 0.00 0.00 0.00 20:59:11 18:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 18:40:24 lo 0.11 0.11 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 18:40:24 ens3 0.31 0.08 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 18:40:24 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 18:50:24 lo 0.09 0.09 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 18:50:24 ens3 0.29 0.07 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 18:50:24 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 19:00:01 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 19:00:01 ens3 0.33 0.08 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 19:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 19:10:25 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 19:10:25 ens3 0.60 0.50 0.07 0.46 0.00 0.00 0.00 0.00 20:59:11 19:10:25 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 19:20:25 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 19:20:25 ens3 0.29 0.08 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 19:20:25 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 19:30:01 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 19:30:01 ens3 0.26 0.07 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 19:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 19:40:26 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 19:40:26 ens3 0.37 0.08 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 19:40:26 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 19:50:27 lo 0.12 0.12 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 19:50:27 ens3 0.36 0.08 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 19:50:27 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 20:00:01 lo 0.08 0.08 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 20:00:01 ens3 0.28 0.08 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 20:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 20:10:28 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 20:10:28 ens3 0.45 0.16 0.12 0.08 0.00 0.00 0.00 0.00 20:59:11 20:10:28 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 20:20:28 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 20:20:28 ens3 0.36 0.07 0.05 0.02 0.00 0.00 0.00 0.00 20:59:11 20:20:28 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 20:30:01 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 20:30:01 ens3 0.25 0.08 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 20:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 20:40:28 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 20:40:28 ens3 0.28 0.07 0.04 0.02 0.00 0.00 0.00 0.00 20:59:11 20:40:28 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 20:50:28 lo 0.98 0.98 0.10 0.10 0.00 0.00 0.00 0.00 20:59:11 20:50:28 ens3 84.21 60.70 864.40 9.77 0.00 0.00 0.00 0.00 20:59:11 20:50:28 docker0 0.00 0.01 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 Average: lo 0.15 0.15 0.01 0.01 0.00 0.00 0.00 0.00 20:59:11 Average: ens3 5.28 3.67 50.76 0.62 0.00 0.00 0.00 0.00 20:59:11 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20:59:11 20:59:11 20:59:11 ---> sar -P ALL: 20:59:11 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-64948) 10/13/26 _x86_64_ (4 CPU) 20:59:11 20:59:11 17:52:17 LINUX RESTART (4 CPU) 20:59:11 20:59:11 18:00:01 CPU %user %nice %system %iowait %steal %idle 20:59:11 18:10:23 all 0.12 0.00 0.03 0.01 0.00 99.84 20:59:11 18:10:23 0 0.02 0.00 0.03 0.02 0.00 99.93 20:59:11 18:10:23 1 0.42 0.00 0.03 0.00 0.00 99.54 20:59:11 18:10:23 2 0.01 0.00 0.02 0.01 0.00 99.96 20:59:11 18:10:23 3 0.02 0.00 0.03 0.02 0.00 99.93 20:59:11 18:20:23 all 0.24 0.00 0.02 0.01 0.00 99.73 20:59:11 18:20:23 0 0.85 0.00 0.02 0.00 0.00 99.13 20:59:11 18:20:23 1 0.04 0.00 0.02 0.03 0.00 99.91 20:59:11 18:20:23 2 0.03 0.00 0.03 0.00 0.00 99.94 20:59:11 18:20:23 3 0.03 0.00 0.02 0.01 0.00 99.94 20:59:11 18:30:01 all 0.11 0.00 0.03 0.01 0.00 99.86 20:59:11 18:30:01 0 0.16 0.00 0.02 0.00 0.00 99.82 20:59:11 18:30:01 1 0.22 0.00 0.03 0.03 0.01 99.72 20:59:11 18:30:01 2 0.03 0.00 0.03 0.01 0.00 99.93 20:59:11 18:30:01 3 0.02 0.00 0.02 0.00 0.00 99.96 20:59:11 18:40:24 all 0.15 0.00 0.02 0.01 0.00 99.82 20:59:11 18:40:24 0 0.01 0.00 0.02 0.00 0.00 99.96 20:59:11 18:40:24 1 0.02 0.00 0.03 0.02 0.00 99.92 20:59:11 18:40:24 2 0.54 0.00 0.03 0.00 0.00 99.41 20:59:11 18:40:24 3 0.02 0.00 0.01 0.00 0.00 99.97 20:59:11 18:50:24 all 0.12 0.00 0.03 0.01 0.00 99.83 20:59:11 18:50:24 0 0.42 0.00 0.03 0.00 0.00 99.55 20:59:11 18:50:24 1 0.03 0.00 0.04 0.03 0.01 99.90 20:59:11 18:50:24 2 0.03 0.00 0.03 0.00 0.01 99.93 20:59:11 18:50:24 3 0.02 0.00 0.02 0.01 0.00 99.95 20:59:11 19:00:01 all 0.17 0.00 0.04 0.09 0.01 99.69 20:59:11 19:00:01 0 0.22 0.00 0.04 0.27 0.01 99.46 20:59:11 19:00:01 1 0.40 0.00 0.05 0.03 0.01 99.50 20:59:11 19:00:01 2 0.04 0.00 0.04 0.06 0.01 99.84 20:59:11 19:00:01 3 0.03 0.00 0.02 0.00 0.01 99.94 20:59:11 19:10:25 all 0.21 0.00 0.03 0.02 0.01 99.73 20:59:11 19:10:25 0 0.10 0.00 0.03 0.00 0.01 99.86 20:59:11 19:10:25 1 0.06 0.00 0.04 0.01 0.01 99.88 20:59:11 19:10:25 2 0.02 0.00 0.03 0.05 0.01 99.88 20:59:11 19:10:25 3 0.64 0.00 0.04 0.00 0.01 99.31 20:59:11 19:20:25 all 0.08 0.00 0.04 0.01 0.01 99.86 20:59:11 19:20:25 0 0.02 0.00 0.02 0.00 0.01 99.95 20:59:11 19:20:25 1 0.06 0.00 0.06 0.01 0.02 99.86 20:59:11 19:20:25 2 0.04 0.00 0.05 0.03 0.01 99.87 20:59:11 19:20:25 3 0.21 0.00 0.02 0.00 0.01 99.75 20:59:11 19:30:01 all 0.17 0.00 0.04 0.01 0.02 99.76 20:59:11 19:30:01 0 0.02 0.00 0.04 0.00 0.02 99.91 20:59:11 19:30:01 1 0.03 0.00 0.03 0.01 0.01 99.91 20:59:11 19:30:01 2 0.05 0.00 0.03 0.05 0.02 99.85 20:59:11 19:30:01 3 0.57 0.00 0.04 0.00 0.01 99.37 20:59:11 19:40:26 all 0.16 0.00 0.03 0.01 0.02 99.78 20:59:11 19:40:26 0 0.02 0.00 0.04 0.01 0.02 99.92 20:59:11 19:40:26 1 0.03 0.00 0.03 0.00 0.01 99.92 20:59:11 19:40:26 2 0.03 0.00 0.04 0.04 0.02 99.86 20:59:11 19:40:26 3 0.55 0.00 0.03 0.00 0.02 99.40 20:59:11 19:50:27 all 0.17 0.00 0.03 0.01 0.01 99.78 20:59:11 19:50:27 0 0.02 0.00 0.02 0.00 0.01 99.95 20:59:11 19:50:27 1 0.04 0.00 0.04 0.01 0.01 99.91 20:59:11 19:50:27 2 0.29 0.00 0.04 0.03 0.02 99.62 20:59:11 19:50:27 3 0.31 0.00 0.02 0.00 0.01 99.66 20:59:11 20:59:11 19:50:27 CPU %user %nice %system %iowait %steal %idle 20:59:11 20:00:01 all 0.03 0.00 0.03 0.01 0.01 99.92 20:59:11 20:00:01 0 0.02 0.00 0.03 0.00 0.01 99.94 20:59:11 20:00:01 1 0.04 0.00 0.04 0.01 0.01 99.90 20:59:11 20:00:01 2 0.04 0.00 0.04 0.01 0.01 99.91 20:59:11 20:00:01 3 0.01 0.00 0.02 0.02 0.00 99.94 20:59:11 20:10:28 all 0.12 0.00 0.04 0.01 0.01 99.83 20:59:11 20:10:28 0 0.02 0.00 0.03 0.03 0.00 99.92 20:59:11 20:10:28 1 0.04 0.00 0.05 0.00 0.01 99.90 20:59:11 20:10:28 2 0.02 0.00 0.03 0.00 0.01 99.94 20:59:11 20:10:28 3 0.39 0.00 0.04 0.00 0.00 99.56 20:59:11 20:20:28 all 0.18 0.00 0.03 0.01 0.00 99.77 20:59:11 20:20:28 0 0.02 0.00 0.02 0.01 0.00 99.96 20:59:11 20:20:28 1 0.03 0.00 0.03 0.03 0.00 99.90 20:59:11 20:20:28 2 0.03 0.00 0.02 0.00 0.00 99.95 20:59:11 20:20:28 3 0.66 0.00 0.05 0.00 0.00 99.29 20:59:11 20:30:01 all 0.20 0.00 0.04 0.01 0.00 99.75 20:59:11 20:30:01 0 0.02 0.00 0.02 0.02 0.00 99.95 20:59:11 20:30:01 1 0.02 0.00 0.03 0.00 0.00 99.94 20:59:11 20:30:01 2 0.02 0.00 0.02 0.01 0.00 99.95 20:59:11 20:30:01 3 0.75 0.00 0.07 0.02 0.01 99.16 20:59:11 20:40:28 all 0.02 0.00 0.03 0.01 0.00 99.94 20:59:11 20:40:28 0 0.02 0.00 0.02 0.00 0.00 99.95 20:59:11 20:40:28 1 0.03 0.00 0.03 0.01 0.00 99.94 20:59:11 20:40:28 2 0.01 0.00 0.02 0.03 0.00 99.93 20:59:11 20:40:28 3 0.03 0.00 0.03 0.00 0.00 99.94 20:59:11 20:50:28 all 9.87 0.00 1.05 0.59 0.01 88.49 20:59:11 20:50:28 0 7.92 0.00 0.80 0.48 0.01 90.79 20:59:11 20:50:28 1 8.28 0.00 1.14 0.70 0.01 89.87 20:59:11 20:50:28 2 8.38 0.00 0.94 0.81 0.01 89.87 20:59:11 20:50:28 3 14.89 0.00 1.32 0.37 0.01 83.41 20:59:11 Average: all 0.71 0.00 0.09 0.05 0.01 99.14 20:59:11 Average: 0 0.58 0.00 0.07 0.05 0.01 99.29 20:59:11 Average: 1 0.57 0.00 0.10 0.05 0.01 99.26 20:59:11 Average: 2 0.57 0.00 0.08 0.07 0.01 99.28 20:59:11 Average: 3 1.12 0.00 0.11 0.03 0.01 98.74 20:59:11 20:59:11 20:59:11