14:41:47 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125749 14:41:47 Running as SYSTEM 14:41:47 [EnvInject] - Loading node environment variables. 14:41:47 Building remotely on prd-ubuntu2204-docker-4c-16g-11 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-vanadium 14:41:47 [ssh-agent] Looking for ssh-agent implementation... 14:41:48 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 14:41:48 $ ssh-agent 14:41:48 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXleFuoz/agent.1564 14:41:48 SSH_AGENT_PID=1566 14:41:48 [ssh-agent] Started. 14:41:48 Running ssh-add (command line suppressed) 14:41:48 Identity added: /w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_13287226829151038012.key (/w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_13287226829151038012.key) 14:41:48 [ssh-agent] Using credentials jenkins (jenkins-ssh) 14:41:48 The recommended git tool is: NONE 14:41:53 using credential jenkins-ssh 14:41:53 Wiping out workspace first. 14:41:53 Cloning the remote Git repository 14:41:53 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 14:41:54 > git init /w/workspace/transportpce-tox-verify-vanadium # timeout=10 14:41:54 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:41:54 > git --version # timeout=10 14:41:54 > git --version # 'git version 2.34.1' 14:41:54 using GIT_SSH to set credentials jenkins-ssh 14:41:54 Verifying host key using known hosts file, will automatically accept unseen keys 14:41:54 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 14:41:58 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:41:58 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 14:41:58 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:41:58 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:41:58 using GIT_SSH to set credentials jenkins-ssh 14:41:58 Verifying host key using known hosts file, will automatically accept unseen keys 14:41:58 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/49/125749/1 # timeout=10 14:41:59 > git rev-parse 013f9af60dd041f305f0c75430f1f2f3fb143d21^{commit} # timeout=10 14:41:59 Checking out Revision 013f9af60dd041f305f0c75430f1f2f3fb143d21 (refs/changes/49/125749/1) 14:41:59 > git config core.sparsecheckout # timeout=10 14:41:59 > git checkout -f 013f9af60dd041f305f0c75430f1f2f3fb143d21 # timeout=10 14:42:02 Commit message: "Bump project version to 12.2.0-SNAPSHOT" 14:42:02 > git rev-parse FETCH_HEAD^{commit} # timeout=10 14:42:02 > git rev-list --no-walk 64ef2b867a96ccd9afb3c1fadaeca46646fe3c08 # timeout=10 14:42:02 > git remote # timeout=10 14:42:02 > git submodule init # timeout=10 14:42:02 > git submodule sync # timeout=10 14:42:03 > git config --get remote.origin.url # timeout=10 14:42:03 > git submodule init # timeout=10 14:42:03 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 14:42:03 ERROR: No submodules found. 14:42:03 provisioning config files... 14:42:03 copy managed file [npmrc] to file:/home/jenkins/.npmrc 14:42:03 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 14:42:03 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins4763255391523709864.sh 14:42:03 ---> python-tools-install.sh 14:42:03 Setup pyenv: 14:42:03 * system (set by /opt/pyenv/version) 14:42:03 * 3.8.20 (set by /opt/pyenv/version) 14:42:03 * 3.9.20 (set by /opt/pyenv/version) 14:42:03 3.10.15 14:42:03 3.11.10 14:42:08 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-YmB6 14:42:08 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 14:42:08 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:42:15 lf-activate-venv(): INFO: Installing additional packages: lftools 14:42:53 lf-activate-venv(): INFO: Adding /tmp/venv-YmB6/bin to PATH 14:42:53 Generating Requirements File 14:43:25 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 14:43:25 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 14:43:26 Python 3.11.10 14:43:26 pip 26.2.1 from /tmp/venv-YmB6/lib/python3.11/site-packages/pip (python 3.11) 14:43:26 aiohappyeyeballs==2.7.1 14:43:26 aiohttp==3.14.3 14:43:26 aiosignal==1.4.0 14:43:26 appdirs==1.4.4 14:43:26 argcomplete==3.7.2 14:43:26 aspy.yaml==1.3.0 14:43:26 attrs==26.1.0 14:43:26 autopage==0.6.0 14:43:26 beautifulsoup4==4.15.0 14:43:26 boto3==1.43.88 14:43:26 botocore==1.43.88 14:43:26 bs4==0.0.2 14:43:26 certifi==2026.7.22 14:43:26 cffi==2.1.1 14:43:26 cfgv==3.5.0 14:43:26 chardet==7.6.0 14:43:26 charset-normalizer==3.5.1 14:43:26 click==8.5.0 14:43:26 cliff==4.16.0 14:43:26 cmd2==4.2.3 14:43:26 cryptography==3.3.2 14:43:26 debtcollector==3.1.0 14:43:26 decorator==5.3.1 14:43:26 defusedxml==0.7.1 14:43:26 Deprecated==1.3.1 14:43:26 distlib==0.4.3 14:43:26 dnspython==2.8.0 14:43:26 docker==7.2.0 14:43:26 dogpile.cache==1.5.0 14:43:26 durationpy==0.11 14:43:26 email-validator==2.3.0 14:43:26 filelock==3.32.5 14:43:26 frozenlist==1.8.0 14:43:26 future==1.0.0 14:43:26 gitdb==4.0.12 14:43:26 GitPython==3.1.61 14:43:26 httplib2==0.30.2 14:43:26 identify==2.6.19 14:43:26 idna==3.19 14:43:26 importlib-resources==1.5.0 14:43:26 iso8601==2.1.0 14:43:26 Jinja2==3.1.6 14:43:26 jmespath==1.1.0 14:43:26 jsonpatch==1.33 14:43:26 jsonpointer==3.1.1 14:43:26 jsonschema==4.26.0 14:43:26 jsonschema-specifications==2025.9.1 14:43:26 keystoneauth1==5.17.0 14:43:26 kubernetes==36.0.3 14:43:26 lftools==0.37.23 14:43:26 lxml==6.1.3 14:43:26 markdown-it-py==4.2.0 14:43:26 MarkupSafe==3.0.3 14:43:26 mdurl==0.1.2 14:43:26 msgpack==1.2.2 14:43:26 multi_key_dict==2.0.3 14:43:26 multidict==6.7.1 14:43:26 munch==4.0.0 14:43:26 netaddr==1.3.0 14:43:26 niet==1.4.2 14:43:26 nodeenv==1.10.0 14:43:26 oauth2client==4.1.3 14:43:26 oauthlib==3.3.1 14:43:26 openstacksdk==4.20.0 14:43:26 os-service-types==1.9.0 14:43:26 osc-lib==4.7.0 14:43:26 oslo.config==10.7.0 14:43:26 oslo.context==6.5.0 14:43:26 oslo.i18n==6.9.0 14:43:26 oslo.log==8.3.1 14:43:26 oslo.serialization==5.11.0 14:43:26 oslo.utils==10.2.0 14:43:26 packaging==26.3 14:43:26 pbr==7.0.3 14:43:26 platformdirs==4.11.7 14:43:26 prettytable==3.18.0 14:43:26 prompt_toolkit==3.0.53 14:43:26 propcache==0.5.2 14:43:26 psutil==7.2.2 14:43:26 pyasn1==0.6.4 14:43:26 pyasn1_modules==0.4.2 14:43:26 pycparser==3.0 14:43:26 pygerrit2==2.0.15 14:43:26 PyGithub==2.10.0 14:43:26 Pygments==2.21.0 14:43:26 PyJWT==2.13.0 14:43:26 PyNaCl==1.6.2 14:43:26 pyparsing==2.4.7 14:43:26 pyperclip==1.11.0 14:43:26 pyrsistent==0.20.0 14:43:26 python-dateutil==2.9.0.post0 14:43:26 python-discovery==1.6.0 14:43:26 python-heatclient==5.3.0 14:43:26 python-jenkins==1.8.3 14:43:26 python-keystoneclient==6.0.0 14:43:26 python-magnumclient==5.0.0 14:43:26 python-manilaclient==6.3.0 14:43:26 python-openstackclient==10.3.0 14:43:26 python-swiftclient==4.11.0 14:43:26 PyYAML==6.0.3 14:43:26 referencing==0.37.0 14:43:26 requests==2.34.2 14:43:26 requests-oauthlib==2.0.0 14:43:26 rfc3986==2.0.0 14:43:26 rich==15.0.0 14:43:26 rich-argparse==1.8.0 14:43:26 rpds-py==2026.6.3 14:43:26 rsa==4.9.1 14:43:26 ruamel.yaml==0.19.1 14:43:26 ruamel.yaml.clib==0.2.15 14:43:26 s3transfer==0.19.2 14:43:26 simplejson==4.1.2 14:43:26 six==1.17.0 14:43:26 smmap==5.0.3 14:43:26 soupsieve==2.9.2 14:43:26 stevedore==5.9.1 14:43:26 tabulate==0.10.0 14:43:26 toml==0.10.2 14:43:26 tomlkit==0.15.1 14:43:26 tqdm==4.70.0 14:43:26 typing_extensions==4.16.0 14:43:26 urllib3==1.26.20 14:43:26 virtualenv==21.7.8 14:43:26 wcwidth==0.8.3 14:43:26 websocket-client==1.9.2 14:43:26 wrapt==2.4.0 14:43:26 xdg==6.0.0 14:43:26 xmltodict==1.0.4 14:43:26 yarl==1.24.5 14:43:26 yq==4.1.2 14:43:26 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins18234032874660471414.sh 14:43:26 ---> uv-install.sh 14:43:26 Installing uv/uvx (latest) using shell installer 14:43:27 2026-09-04 14:43:27 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-VQ38jw.sh" [1] 14:43:27 downloading uv 0.12.9 x86_64-unknown-linux-gnu 14:43:28 installing to /home/jenkins/.local/bin 14:43:28 uv 14:43:28 uvx 14:43:28 everything's installed! 14:43:28 14:43:28 To add $HOME/.local/bin to your PATH, either restart your shell or run: 14:43:28 14:43:28 source $HOME/.local/bin/env (sh, bash, zsh) 14:43:28 source $HOME/.local/bin/env.fish (fish) 14:43:28 Adding install location to PATH 14:43:28 ---> Validating uv/uvx install 14:43:28 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:43:28 [EnvInject] - Injecting environment variables from a build step. 14:43:28 [EnvInject] - Injecting as environment variables the properties content 14:43:28 PYTHON=python3 14:43:28 14:43:28 [EnvInject] - Variables injected successfully. 14:43:28 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins13866832716141181340.sh 14:43:28 ---> tox-install.sh 14:43:28 + source /home/jenkins/lf-env.sh 14:43:28 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:28 ++ mktemp -d /tmp/venv-XXXX 14:43:28 + lf_venv=/tmp/venv-jkyU 14:43:28 + local venv_file=/tmp/.os_lf_venv 14:43:28 + local python=python3 14:43:28 + local options 14:43:28 + local set_path=true 14:43:28 + local install_args= 14:43:28 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:28 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:28 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:28 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:43:28 + true 14:43:28 + case $1 in 14:43:28 + venv_file=/tmp/.toxenv 14:43:28 + shift 2 14:43:28 + true 14:43:28 + case $1 in 14:43:28 + shift 14:43:28 + break 14:43:28 + case $python in 14:43:28 + local pkg_list= 14:43:28 + [[ -d /opt/pyenv ]] 14:43:28 + echo 'Setup pyenv:' 14:43:28 Setup pyenv: 14:43:28 + export PYENV_ROOT=/opt/pyenv 14:43:28 + PYENV_ROOT=/opt/pyenv 14:43:28 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:28 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:28 + pyenv versions 14:43:28 system 14:43:28 3.8.20 14:43:28 3.9.20 14:43:28 3.10.15 14:43:28 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:43:28 + command -v pyenv 14:43:28 ++ pyenv init - --no-rehash 14:43:28 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:43:28 for i in ${!paths[@]}; do 14:43:28 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:43:28 fi; done; 14:43:28 echo "${paths[*]}"'\'')" 14:43:28 export PATH="/opt/pyenv/shims:${PATH}" 14:43:28 export PYENV_SHELL=bash 14:43:28 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:43:28 pyenv() { 14:43:28 local command 14:43:28 command="${1:-}" 14:43:28 if [ "$#" -gt 0 ]; then 14:43:28 shift 14:43:28 fi 14:43:28 14:43:28 case "$command" in 14:43:28 rehash|shell) 14:43:28 eval "$(pyenv "sh-$command" "$@")" 14:43:28 ;; 14:43:28 *) 14:43:28 command pyenv "$command" "$@" 14:43:28 ;; 14:43:28 esac 14:43:28 }' 14:43:28 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:43:28 for i in ${!paths[@]}; do 14:43:28 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:43:28 fi; done; 14:43:28 echo "${paths[*]}"' 14:43:28 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:28 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:28 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:28 ++ export PYENV_SHELL=bash 14:43:28 ++ PYENV_SHELL=bash 14:43:28 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:43:28 +++ complete -F _pyenv pyenv 14:43:28 ++ lf-pyver python3 14:43:28 ++ local py_version_xy=python3 14:43:28 ++ local py_version_xyz= 14:43:28 ++ pyenv versions 14:43:28 ++ local command 14:43:28 ++ command=versions 14:43:28 ++ '[' 1 -gt 0 ']' 14:43:28 ++ shift 14:43:28 ++ case "$command" in 14:43:28 ++ command pyenv versions 14:43:28 ++ awk '{ print $1 }' 14:43:28 ++ grep -E '^[0-9.]*[0-9]$' 14:43:28 ++ sed 's/^[ *]* //' 14:43:28 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:43:28 +++ grep '^3' /tmp/.pyenv_versions 14:43:28 +++ sort -V 14:43:28 +++ tail -n 1 14:43:28 ++ py_version_xyz=3.11.10 14:43:28 ++ [[ -z 3.11.10 ]] 14:43:28 ++ echo 3.11.10 14:43:28 ++ return 0 14:43:28 + pyenv local 3.11.10 14:43:28 + local command 14:43:28 + command=local 14:43:28 + '[' 2 -gt 0 ']' 14:43:28 + shift 14:43:28 + case "$command" in 14:43:28 + command pyenv local 3.11.10 14:43:28 + for arg in "$@" 14:43:28 + case $arg in 14:43:28 + pkg_list+='tox ' 14:43:28 + for arg in "$@" 14:43:28 + case $arg in 14:43:28 + pkg_list+='virtualenv ' 14:43:28 + for arg in "$@" 14:43:28 + case $arg in 14:43:28 + pkg_list+='urllib3~=1.26.15 ' 14:43:28 + [[ -f /tmp/.toxenv ]] 14:43:28 + [[ ! -f /tmp/.toxenv ]] 14:43:28 + [[ -n '' ]] 14:43:28 + python3 -m venv /tmp/venv-jkyU 14:43:32 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-jkyU' 14:43:32 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-jkyU 14:43:32 + echo /tmp/venv-jkyU 14:43:32 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 14:43:32 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 14:43:32 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:43:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:43:32 + local 'pip_opts=--upgrade --quiet' 14:43:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:43:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:43:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:43:32 + [[ -n '' ]] 14:43:32 + [[ -n '' ]] 14:43:32 + lf-venv-pip-install /tmp/venv-jkyU/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:43:32 + local venv_python=/tmp/venv-jkyU/bin/python3 14:43:32 + shift 14:43:32 + local upstream=https://pypi.org/simple 14:43:32 + /tmp/venv-jkyU/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:43:36 + return 0 14:43:36 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:43:36 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:43:36 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:43:36 + lf-venv-pip-install /tmp/venv-jkyU/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 14:43:36 + local venv_python=/tmp/venv-jkyU/bin/python3 14:43:36 + shift 14:43:36 + local upstream=https://pypi.org/simple 14:43:36 + /tmp/venv-jkyU/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 14:43:39 + return 0 14:43:39 + type python3 14:43:39 + true 14:43:39 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-jkyU/bin to PATH' 14:43:39 lf-activate-venv(): INFO: Adding /tmp/venv-jkyU/bin to PATH 14:43:39 + PATH=/tmp/venv-jkyU/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:39 + return 0 14:43:39 + python3 --version 14:43:39 Python 3.11.10 14:43:39 + python3 -m pip --version 14:43:39 pip 26.2.1 from /tmp/venv-jkyU/lib/python3.11/site-packages/pip (python 3.11) 14:43:39 + python3 -m pip freeze 14:43:39 cachetools==7.1.8 14:43:39 colorama==0.4.6 14:43:39 distlib==0.4.3 14:43:39 filelock==3.32.5 14:43:39 packaging==26.3 14:43:39 platformdirs==4.11.7 14:43:39 pluggy==1.6.0 14:43:39 pyproject-api==1.11.0 14:43:39 python-discovery==1.6.0 14:43:39 tomli_w==1.2.0 14:43:39 tox==4.61.2 14:43:39 typing_extensions==4.16.0 14:43:39 urllib3==1.26.20 14:43:39 virtualenv==21.7.8 14:43:39 [transportpce-tox-verify-vanadium] $ /bin/sh -xe /tmp/jenkins11919112921746407038.sh 14:43:39 [EnvInject] - Injecting environment variables from a build step. 14:43:39 [EnvInject] - Injecting as environment variables the properties content 14:43:39 PARALLEL=True 14:43:39 14:43:39 [EnvInject] - Variables injected successfully. 14:43:39 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins16522122076689035490.sh 14:43:40 ---> tox-run.sh 14:43:40 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:40 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:43:40 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:43:40 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:43:40 + cd /w/workspace/transportpce-tox-verify-vanadium/. 14:43:40 + source /home/jenkins/lf-env.sh 14:43:40 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:40 ++ mktemp -d /tmp/venv-XXXX 14:43:40 + lf_venv=/tmp/venv-jqAc 14:43:40 + local venv_file=/tmp/.os_lf_venv 14:43:40 + local python=python3 14:43:40 + local options 14:43:40 + local set_path=true 14:43:40 + local install_args= 14:43:40 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:40 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:40 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:40 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:43:40 + true 14:43:40 + case $1 in 14:43:40 + venv_file=/tmp/.toxenv 14:43:40 + shift 2 14:43:40 + true 14:43:40 + case $1 in 14:43:40 + shift 14:43:40 + break 14:43:40 + case $python in 14:43:40 + local pkg_list= 14:43:40 + [[ -d /opt/pyenv ]] 14:43:40 + echo 'Setup pyenv:' 14:43:40 Setup pyenv: 14:43:40 + export PYENV_ROOT=/opt/pyenv 14:43:40 + PYENV_ROOT=/opt/pyenv 14:43:40 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:40 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:40 + pyenv versions 14:43:40 system 14:43:40 3.8.20 14:43:40 3.9.20 14:43:40 3.10.15 14:43:40 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:43:40 + command -v pyenv 14:43:40 ++ pyenv init - --no-rehash 14:43:40 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:43:40 for i in ${!paths[@]}; do 14:43:40 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:43:40 fi; done; 14:43:40 echo "${paths[*]}"'\'')" 14:43:40 export PATH="/opt/pyenv/shims:${PATH}" 14:43:40 export PYENV_SHELL=bash 14:43:40 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:43:40 pyenv() { 14:43:40 local command 14:43:40 command="${1:-}" 14:43:40 if [ "$#" -gt 0 ]; then 14:43:40 shift 14:43:40 fi 14:43:40 14:43:40 case "$command" in 14:43:40 rehash|shell) 14:43:40 eval "$(pyenv "sh-$command" "$@")" 14:43:40 ;; 14:43:40 *) 14:43:40 command pyenv "$command" "$@" 14:43:40 ;; 14:43:40 esac 14:43:40 }' 14:43:40 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:43:40 for i in ${!paths[@]}; do 14:43:40 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:43:40 fi; done; 14:43:40 echo "${paths[*]}"' 14:43:40 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:40 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:40 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:40 ++ export PYENV_SHELL=bash 14:43:40 ++ PYENV_SHELL=bash 14:43:40 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:43:40 +++ complete -F _pyenv pyenv 14:43:40 ++ lf-pyver python3 14:43:40 ++ local py_version_xy=python3 14:43:40 ++ local py_version_xyz= 14:43:40 ++ pyenv versions 14:43:40 ++ local command 14:43:40 ++ command=versions 14:43:40 ++ '[' 1 -gt 0 ']' 14:43:40 ++ shift 14:43:40 ++ case "$command" in 14:43:40 ++ command pyenv versions 14:43:40 ++ sed 's/^[ *]* //' 14:43:40 ++ awk '{ print $1 }' 14:43:40 ++ grep -E '^[0-9.]*[0-9]$' 14:43:40 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:43:40 +++ grep '^3' /tmp/.pyenv_versions 14:43:40 +++ sort -V 14:43:40 +++ tail -n 1 14:43:40 ++ py_version_xyz=3.11.10 14:43:40 ++ [[ -z 3.11.10 ]] 14:43:40 ++ echo 3.11.10 14:43:40 ++ return 0 14:43:40 + pyenv local 3.11.10 14:43:40 + local command 14:43:40 + command=local 14:43:40 + '[' 2 -gt 0 ']' 14:43:40 + shift 14:43:40 + case "$command" in 14:43:40 + command pyenv local 3.11.10 14:43:40 + for arg in "$@" 14:43:40 + case $arg in 14:43:40 + pkg_list+='tox ' 14:43:40 + for arg in "$@" 14:43:40 + case $arg in 14:43:40 + pkg_list+='virtualenv ' 14:43:40 + for arg in "$@" 14:43:40 + case $arg in 14:43:40 + pkg_list+='urllib3~=1.26.15 ' 14:43:40 + [[ -f /tmp/.toxenv ]] 14:43:40 ++ cat /tmp/.toxenv 14:43:40 + lf_venv=/tmp/venv-jkyU 14:43:40 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-jkyU from' file:/tmp/.toxenv 14:43:40 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-jkyU from file:/tmp/.toxenv 14:43:40 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:43:40 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:43:40 + local 'pip_opts=--upgrade --quiet' 14:43:40 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:43:40 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:43:40 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:43:40 + [[ -n '' ]] 14:43:40 + [[ -n '' ]] 14:43:40 + lf-venv-pip-install /tmp/venv-jkyU/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:43:40 + local venv_python=/tmp/venv-jkyU/bin/python3 14:43:40 + shift 14:43:40 + local upstream=https://pypi.org/simple 14:43:40 + /tmp/venv-jkyU/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:43:41 + return 0 14:43:41 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:43:41 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:43:41 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:43:41 + lf-venv-pip-install /tmp/venv-jkyU/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 14:43:41 + local venv_python=/tmp/venv-jkyU/bin/python3 14:43:41 + shift 14:43:41 + local upstream=https://pypi.org/simple 14:43:41 + /tmp/venv-jkyU/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 14:43:50 + return 0 14:43:50 + type python3 14:43:50 + true 14:43:50 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-jkyU/bin to PATH' 14:43:50 lf-activate-venv(): INFO: Adding /tmp/venv-jkyU/bin to PATH 14:43:50 + PATH=/tmp/venv-jkyU/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:50 + return 0 14:43:50 + [[ -d /opt/pyenv ]] 14:43:50 + echo '---> Setting up pyenv' 14:43:50 ---> Setting up pyenv 14:43:50 + export PYENV_ROOT=/opt/pyenv 14:43:50 + PYENV_ROOT=/opt/pyenv 14:43:50 + export PATH=/opt/pyenv/bin:/tmp/venv-jkyU/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:50 + PATH=/opt/pyenv/bin:/tmp/venv-jkyU/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:50 ++ pwd 14:43:50 + PYTHONPATH=/w/workspace/transportpce-tox-verify-vanadium 14:43:50 + export PYTHONPATH 14:43:50 + export TOX_TESTENV_PASSENV=PYTHONPATH 14:43:50 + TOX_TESTENV_PASSENV=PYTHONPATH 14:43:50 + tox --version 14:43:50 4.61.2 from /tmp/venv-jkyU/lib/python3.11/site-packages/tox/__init__.py 14:43:51 + PARALLEL=True 14:43:51 + TOX_OPTIONS_LIST= 14:43:51 + [[ -n '' ]] 14:43:51 + case ${PARALLEL,,} in 14:43:51 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 14:43:51 + tox --parallel auto --parallel-live 14:43:51 + tee -a /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tox.log 14:43:52 checkbashisms: freeze> python -m pip freeze --all 14:43:52 docs: install_deps> python -I -m pip install -r docs/requirements.txt 14:43:52 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 14:43:52 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:43:53 checkbashisms: pip==26.2.1,setuptools==84.0.0 14:43:53 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:43:53 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-vanadium/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 14:43:53 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 14:43:54 checkbashisms: OK ✔ in 3 seconds 14:43:54 pre-commit: install_deps> python -I -m pip install pre-commit 14:43:57 pre-commit: freeze> python -m pip freeze --all 14:43:57 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.5,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.7,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.8 14:43:57 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:43:57 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-vanadium/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 14:43:57 /usr/bin/cpan 14:43:57 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run --all-files --show-diff-on-failure 14:43:57 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:43:57 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:43:57 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 14:43:58 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 14:43:58 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 14:43:59 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 14:44:00 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:44:00 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 14:44:01 buildcontroller: freeze> python -m pip freeze --all 14:44:01 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:44:01 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh 14:44:01 + update-java-alternatives -l 14:44:01 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 14:44:01 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 14:44:01 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 14:44:01 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 14:44:01 update-alternatives: error: no alternatives for jaotc 14:44:01 update-alternatives: error: no alternatives for rmic 14:44:02 + java -version 14:44:02 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 14:44:02 21 14:44:02 + JAVA_VER=21 14:44:02 + echo 21 14:44:02 + javac -version 14:44:02 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 14:44:02 21 14:44:02 ok, java is 21 or newer 14:44:02 + JAVAC_VER=21 14:44:02 + echo 21 14:44:02 + [ 21 -ge 21 ] 14:44:02 + [ 21 -ge 21 ] 14:44:02 + echo ok, java is 21 or newer 14:44:02 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz -P /tmp 14:44:02 https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz: 14:44:02 2026-09-04 14:44:02 ERROR 404: Not Found. 14:44:02 + sudo mkdir -p /opt 14:44:02 + sudo tar xf /tmp/apache-maven-3.9.14-bin.tar.gz -C /opt 14:44:02 tar: /tmp/apache-maven-3.9.14-bin.tar.gz: Cannot open: No such file or directory 14:44:02 tar: Error is not recoverable: exiting now 14:44:02 + sudo ln -s /opt/apache-maven-3.9.14 /opt/maven 14:44:02 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 14:44:02 + mvn --version 14:44:02 ./installMavenUbuntu.sh: 28: mvn: not found 14:44:02 buildcontroller: exit 127 (0.94 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh pid=2779 14:44:02 buildcontroller: FAIL ✖ in 11.29 seconds 14:44:02 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 14:44:05 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 14:44:06 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 14:44:06 [INFO] Once installed this environment will be reused. 14:44:06 [INFO] This may take a few minutes... 14:44:07 pylint: freeze> python -m pip freeze --all 14:44:07 pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.7,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 14:44:07 pylint: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 14:44:11 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:44:11 [INFO] Once installed this environment will be reused. 14:44:11 [INFO] This may take a few minutes... 14:44:12 docs-linkcheck: freeze> python -m pip freeze --all 14:44:12 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 14:44:12 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-vanadium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-vanadium/docs/_build/linkcheck 14:44:12 docs: freeze> python -m pip freeze --all 14:44:12 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 14:44:12 docs: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-vanadium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-vanadium/docs/_build/html 14:44:15 docs: OK ✔ in 23.63 seconds 14:44:15 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:19 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 14:44:19 [INFO] Once installed this environment will be reused. 14:44:19 [INFO] This may take a few minutes... 14:44:19 docs-linkcheck: OK ✔ in 28.17 seconds 14:44:19 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:22 build_karaf_tests121: freeze> python -m pip freeze --all 14:44:22 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:44:22 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:22 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf121 14:44:22 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:22 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:22 build karaf in karaf121 with ./karaf121.env 14:44:22 build_karaf_tests121: exit 127 (0.03 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3179 14:44:22 build_karaf_tests121: FAIL ✖ in 7.45 seconds 14:44:22 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:22 [INFO] Installing environment for https://github.com/perltidy/perltidy. 14:44:22 [INFO] Once installed this environment will be reused. 14:44:22 [INFO] This may take a few minutes... 14:44:26 build_karaf_tests221: freeze> python -m pip freeze --all 14:44:26 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:44:26 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:26 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 14:44:26 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:26 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:26 build karaf in karaf221 with ./karaf221.env 14:44:26 build_karaf_tests221: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3207 14:44:26 build_karaf_tests221: FAIL ✖ in 6.95 seconds 14:44:26 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:26 14:44:26 ------------------------------------ 14:44:26 Your code has been rated at 10.00/10 14:44:26 14:44:28 pylint: OK ✔ in 25.9 seconds 14:44:28 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:28 build_karaf_tests71: freeze> python -m pip freeze --all 14:44:29 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:44:29 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:29 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 14:44:29 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:29 build karaf in karaf71 with ./karaf71.env 14:44:29 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:29 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3239 14:44:29 build_karaf_tests71: FAIL ✖ in 6.74 seconds 14:44:29 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:30 trim trailing whitespace.................................................Passed 14:44:31 Tabs remover.............................................................Passed 14:44:31 autopep8.................................................................build_karaf_tests190: freeze> python -m pip freeze --all 14:44:34 build_karaf_tests190: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:44:34 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:34 build karaf in karafoc with ./karafoc.env 14:44:34 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc 14:44:34 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:34 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:34 build_karaf_tests190: exit 127 (0.06 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3391 14:44:34 build_karaf_tests190: FAIL ✖ in 7.92 seconds 14:44:34 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:35 Passed 14:44:35 perltidy.................................................................Passed 14:44:35 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run gitlint-ci --hook-stage manual 14:44:36 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:44:36 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:44:36 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 14:44:36 [INFO] Once installed this environment will be reused. 14:44:36 [INFO] This may take a few minutes... 14:44:36 buildlighty: freeze> python -m pip freeze --all 14:44:36 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:44:36 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh 14:44:36 ./build.sh: 7: mvn: not found 14:44:36 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 14:44:36 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh pid=3443 14:44:36 buildlighty: FAIL ✖ in 8.12 seconds 14:44:36 sims: freeze> python -m pip freeze --all 14:44:37 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:44:37 sims: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./install_lightynode.sh 14:44:37 Using lighynode version 20.1.0.5 14:44:37 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 14:44:42 gitlint..................................................................Passed 14:45:34 pre-commit: OK ✔ in 48.36 seconds 14:45:34 sims: OK ✔ in 16.12 seconds 14:45:34 testsPCE: freeze> python -m pip freeze --all 14:45:35 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.64.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.3,matplotlib==3.11.1,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 14:45:35 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce 14:45:35 pytest -q transportpce_tests/pce/test01_pce.py 14:47:35 EEEEEEEEEEEEEEEEEEEE [100%] 14:47:39 ==================================== ERRORS ==================================== 14:47:39 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 14:47:39 14:47:39 cls = 14:47:39 14:47:39 @classmethod 14:47:39 def setUpClass(cls): 14:47:39 # pylint: disable=bare-except 14:47:39 sample_files_parsed = False 14:47:39 time.sleep(20) 14:47:39 try: 14:47:39 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:39 "..", "..", "sample_configs", "honeynode-topo.json") 14:47:39 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 14:47:39 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 14:47:39 14:47:39 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:39 "..", "..", "sample_configs", "NW-simple-topology.json") 14:47:39 14:47:39 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 14:47:39 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 14:47:39 14:47:39 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:39 "..", "..", "sample_configs", "NW-for-test-5-4.json") 14:47:39 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 14:47:39 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 14:47:39 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:39 "..", "..", "sample_configs", "pce_portmapping_121.json") 14:47:39 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 14:47:39 cls.port_mapping_data = port_mapping.read() 14:47:39 sample_files_parsed = True 14:47:39 except PermissionError as err: 14:47:39 print("Permission Error when trying to read sample files\n", err) 14:47:39 sys.exit(2) 14:47:39 except FileNotFoundError as err: 14:47:39 print("File Not found Error when trying to read sample files\n", err) 14:47:39 sys.exit(2) 14:47:39 except: 14:47:39 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 14:47:39 sys.exit(2) 14:47:39 finally: 14:47:39 if sample_files_parsed: 14:47:39 print("sample files content loaded") 14:47:39 14:47:39 > cls.processes = test_utils.start_tpce() 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 14:47:39 transportpce_tests/pce/test01_pce.py:93: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 def start_tpce(): 14:47:39 if 'NO_ODL_STARTUP' in os.environ: 14:47:39 print('No OpenDaylight instance to start!') 14:47:39 return [] 14:47:39 print('starting OpenDaylight...') 14:47:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:47:39 process = start_lighty() 14:47:39 else: 14:47:39 process = start_karaf() 14:47:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:47:39 print('OpenDaylight started !') 14:47:39 else: 14:47:39 print('OpenDaylight failed to start !') 14:47:39 shutdown_process(process) 14:47:39 for pid in process_list: 14:47:39 shutdown_process(pid) 14:47:39 > sys.exit(1) 14:47:39 E SystemExit: 1 14:47:39 14:47:39 transportpce_tests/common/test_utils.py:232: SystemExit 14:47:39 ---------------------------- Captured stdout setup ----------------------------- 14:47:39 sample files content loaded 14:47:39 starting OpenDaylight... 14:47:39 starting KARAF (karaf) TransportPCE build... 14:47:39 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:47:39 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bbb2e0> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcb4c0> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015b8bf60> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bbb2e0> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1018039120> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bbb2e0> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bc9d00> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcba60> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015b8bf60> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcbb00> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcb380> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015b8bf60> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcafc0> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bc9da0> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcbd80> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcbb00> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015b8be20> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015b8bce0> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 14:47:39 14:47:39 cls = 14:47:39 func = . at 0x7f1015bcbc40> 14:47:39 when = 'setup' 14:47:39 reraise = (, ) 14:47:39 14:47:39 @classmethod 14:47:39 def from_call( 14:47:39 cls, 14:47:39 func: Callable[[], TResult], 14:47:39 when: Literal["collect", "setup", "call", "teardown"], 14:47:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:39 ) -> CallInfo[TResult]: 14:47:39 """Call func, wrapping the result in a CallInfo. 14:47:39 14:47:39 :param func: 14:47:39 The function to call. Called without arguments. 14:47:39 :type func: Callable[[], _pytest.runner.TResult] 14:47:39 :param when: 14:47:39 The phase in which the function is called. 14:47:39 :param reraise: 14:47:39 Exception or exceptions that shall propagate if raised by the 14:47:39 function, instead of being wrapped in the CallInfo. 14:47:39 """ 14:47:39 excinfo = None 14:47:39 instant = timing.Instant() 14:47:39 try: 14:47:39 > result: TResult | None = func() 14:47:39 ^^^^^^ 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:39 lambda: runtest_hook(item=item, **kwds), 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:39 yield 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:39 return (yield) 14:47:39 ^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:39 item.session._setupstate.setup(item) 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:39 col.setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:39 super().setup() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:39 self._request._fillfixtures() 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:39 fixturedef = self._get_active_fixturedef(argname) 14:47:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:39 fixturedef.execute(request=subrequest) 14:47:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:39 14:47:39 self = 14:47:39 request = > 14:47:39 14:47:39 def execute(self, request: SubRequest) -> FixtureValue: 14:47:39 """Return the value of this fixture, executing it if not cached.""" 14:47:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:39 # This needs to be done before checking if we have a cached value, since 14:47:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:39 # parametrization, they finalize themselves and fixtures depending on it 14:47:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:39 # See #4871 14:47:39 requested_fixtures_that_should_finalize_us = [] 14:47:39 for argname in self.argnames: 14:47:39 fixturedef = request._get_active_fixturedef(argname) 14:47:39 # Saves requested fixtures in a list so we later can add our finalizer 14:47:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:39 # down first. This is generally handled by SetupState, but still currently 14:47:39 # needed when this fixture is not parametrized but depends on a parametrized 14:47:39 # fixture. 14:47:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:39 14:47:39 # Check for (and return) cached value/exception. 14:47:39 if self.cached_result is not None: 14:47:39 request_cache_key = self.cache_key(request) 14:47:39 cache_key = self.cached_result[1] 14:47:39 try: 14:47:39 # Attempt to make a normal == check: this might fail for objects 14:47:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:39 cache_hit = bool(request_cache_key == cache_key) 14:47:39 except (ValueError, RuntimeError): 14:47:39 # If the comparison raises, use 'is' as fallback. 14:47:39 cache_hit = request_cache_key is cache_key 14:47:39 14:47:39 if cache_hit: 14:47:39 if self.cached_result[2] is not None: 14:47:39 exc, exc_tb = self.cached_result[2] 14:47:39 raise exc.with_traceback(exc_tb) 14:47:39 else: 14:47:39 return self.cached_result[0] 14:47:39 # We have a previous but differently parametrized fixture instance 14:47:39 # so we need to tear it down before creating a new one. 14:47:39 self.finish(request) 14:47:39 assert self.cached_result is None 14:47:39 14:47:39 # Add finalizer to requested fixtures we saved previously. 14:47:39 # We make sure to do this after checking for cached value to avoid 14:47:39 # adding our finalizer multiple times. (#12135) 14:47:39 finalizer = functools.partial(self.finish, request=request) 14:47:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:39 parent_fixture.addfinalizer(finalizer) 14:47:39 14:47:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:39 # which is executed last. 14:47:39 > assert not self._finalizers 14:47:39 ^^^^^^^^^^^^^^^^^^^^ 14:47:39 E AssertionError 14:47:39 14:47:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:39 =========================== short test summary info ============================ 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 14:47:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 14:47:39 20 errors in 123.96s (0:02:03) 14:47:39 testsPCE: exit 1 (124.27 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce pid=3527 14:47:40 testsPCE: FAIL ✖ in 3 minutes 5 seconds 14:47:40 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:47:40 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:47:40 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:47:47 tests121: freeze> python -m pip freeze --all 14:47:47 tests190: freeze> python -m pip freeze --all 14:47:47 tests_tapi: freeze> python -m pip freeze --all 14:47:48 tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:47:48 tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 14:47:48 using environment variables from ./karaf121.env 14:47:48 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 14:47:48 tests190: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:47:48 tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc 14:47:48 using environment variables from ./karafoc.env 14:47:48 pytest -q transportpce_tests/oc/test01_portmapping.py 14:47:48 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:47:48 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi 14:47:48 using environment variables from ./karaf221.env 14:47:48 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 14:49:28 EEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:49:30 ==================================== ERRORS ==================================== 14:49:30 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 14:49:30 14:49:30 cls = 14:49:30 14:49:30 @classmethod 14:49:30 def setUpClass(cls): 14:49:30 > cls.processes = test_utils.start_tpce() 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 14:49:30 transportpce_tests/oc/test01_portmapping.py:29: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 def start_tpce(): 14:49:30 if 'NO_ODL_STARTUP' in os.environ: 14:49:30 print('No OpenDaylight instance to start!') 14:49:30 return [] 14:49:30 print('starting OpenDaylight...') 14:49:30 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:49:30 process = start_lighty() 14:49:30 else: 14:49:30 process = start_karaf() 14:49:30 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:49:30 print('OpenDaylight started !') 14:49:30 else: 14:49:30 print('OpenDaylight failed to start !') 14:49:30 shutdown_process(process) 14:49:30 for pid in process_list: 14:49:30 shutdown_process(pid) 14:49:30 > sys.exit(1) 14:49:30 E SystemExit: 1 14:49:30 14:49:30 transportpce_tests/common/test_utils.py:232: SystemExit 14:49:30 ---------------------------- Captured stdout setup ----------------------------- 14:49:30 starting OpenDaylight... 14:49:30 starting KARAF (karafoc) TransportPCE build... 14:49:30 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:49:30 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd97465cfe0> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd97467f6a0> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd974643240> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd975e0afc0> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd97467d3a0> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd97465d120> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd976d58400> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd974643240> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:49:30 14:49:30 cls = 14:49:30 func = . at 0x7fd97465d120> 14:49:30 when = 'setup' 14:49:30 reraise = (, ) 14:49:30 14:49:30 @classmethod 14:49:30 def from_call( 14:49:30 cls, 14:49:30 func: Callable[[], TResult], 14:49:30 when: Literal["collect", "setup", "call", "teardown"], 14:49:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:30 ) -> CallInfo[TResult]: 14:49:30 """Call func, wrapping the result in a CallInfo. 14:49:30 14:49:30 :param func: 14:49:30 The function to call. Called without arguments. 14:49:30 :type func: Callable[[], _pytest.runner.TResult] 14:49:30 :param when: 14:49:30 The phase in which the function is called. 14:49:30 :param reraise: 14:49:30 Exception or exceptions that shall propagate if raised by the 14:49:30 function, instead of being wrapped in the CallInfo. 14:49:30 """ 14:49:30 excinfo = None 14:49:30 instant = timing.Instant() 14:49:30 try: 14:49:30 > result: TResult | None = func() 14:49:30 ^^^^^^ 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:30 lambda: runtest_hook(item=item, **kwds), 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:30 yield 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:30 return (yield) 14:49:30 ^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:30 item.session._setupstate.setup(item) 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:30 col.setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:30 super().setup() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:30 self._request._fillfixtures() 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:30 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:30 fixturedef = self._get_active_fixturedef(argname) 14:49:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:30 fixturedef.execute(request=subrequest) 14:49:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:30 14:49:30 self = 14:49:30 request = > 14:49:30 14:49:30 E def execute(self, request: SubRequest) -> FixtureValue: 14:49:30 """Return the value of this fixture, executing it if not cached.""" 14:49:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:30 # This needs to be done before checking if we have a cached value, since 14:49:30 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:30 # parametrization, they finalize themselves and fixtures depending on it 14:49:30 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:30 # See #4871 14:49:30 requested_fixtures_that_should_finalize_us = [] 14:49:30 for argname in self.argnames: 14:49:30 fixturedef = request._get_active_fixturedef(argname) 14:49:30 # Saves requested fixtures in a list so we later can add our finalizer 14:49:30 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:30 # down first. This is generally handled by SetupState, but still currently 14:49:30 # needed when this fixture is not parametrized but depends on a parametrized 14:49:30 # fixture. 14:49:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:30 14:49:30 # Check for (and return) cached value/exception. 14:49:30 if self.cached_result is not None: 14:49:30 request_cache_key = self.cache_key(request) 14:49:30 cache_key = self.cached_result[1] 14:49:30 try: 14:49:30 # Attempt to make a normal == check: this might fail for objects 14:49:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:30 cache_hit = bool(request_cache_key == cache_key) 14:49:30 except (ValueError, RuntimeError): 14:49:30 # If the comparison raises, use 'is' as fallback. 14:49:30 cache_hit = request_cache_key is cache_key 14:49:30 14:49:30 if cache_hit: 14:49:30 if self.cached_result[2] is not None: 14:49:30 exc, exc_tb = self.cached_result[2] 14:49:30 raise exc.with_traceback(exc_tb) 14:49:30 else: 14:49:30 return self.cached_result[0] 14:49:30 # We have a previous but differently parametrized fixture instance 14:49:30 # so we need to tear it down before creating a new one. 14:49:30 self.finish(request) 14:49:30 assert self.cached_result is None 14:49:30 14:49:30 # Add finalizer to requested fixtures we saved previously. 14:49:30 # We make sure to do this after checking for cached value to avoid 14:49:30 # adding our finalizer multiple times. (#12135) 14:49:30 finalizer = functools.partial(self.finish, request=request) 14:49:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:30 parent_fixture.addfinalizer(finalizer) 14:49:30 14:49:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:30 # which is executed last. 14:49:30 > assert not self._finalizers 14:49:30 ^^^^^^^^^^^^^^^^^^^^ 14:49:30 E AssertionError 14:49:30 14:49:30 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:30 =========================== short test summary info ============================ 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 14:49:30 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:49:30 10 errors in 102.09s (0:01:42) 14:49:30 tests190: exit 1 (102.35 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc pid=3645 14:49:30 EEtests190: FAIL ✖ in 1 minute 51.14 seconds 14:49:30 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:49:30 EEEEEEEEEEEEEEEEEEE [100%] 14:49:32 ==================================== ERRORS ==================================== 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:49:32 14:49:32 cls = 14:49:32 14:49:32 @classmethod 14:49:32 def setUpClass(cls): 14:49:32 > cls.processes = test_utils.start_tpce() 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 14:49:32 transportpce_tests/1.2.1/test01_portmapping.py:33: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 def start_tpce(): 14:49:32 if 'NO_ODL_STARTUP' in os.environ: 14:49:32 print('No OpenDaylight instance to start!') 14:49:32 return [] 14:49:32 print('starting OpenDaylight...') 14:49:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:49:32 process = start_lighty() 14:49:32 else: 14:49:32 process = start_karaf() 14:49:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:49:32 print('OpenDaylight started !') 14:49:32 else: 14:49:32 print('OpenDaylight failed to start !') 14:49:32 shutdown_process(process) 14:49:32 for pid in process_list: 14:49:32 shutdown_process(pid) 14:49:32 > sys.exit(1) 14:49:32 E SystemExit: 1 14:49:32 14:49:32 transportpce_tests/common/test_utils.py:232: SystemExit 14:49:32 ---------------------------- Captured stdout setup ----------------------------- 14:49:32 starting OpenDaylight... 14:49:32 starting KARAF (karaf121) TransportPCE build... 14:49:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:49:32 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856d760> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859f560> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86b6f3740> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe869d3b560> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856d3a0> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856d580> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859f600> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859e8e0> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859ede0> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859f600> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859ef20> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856d580> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859ede0> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859ef20> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856d800> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856dbc0> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856dda0> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86859e840> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe868171d00> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 14:49:32 14:49:32 cls = 14:49:32 func = . at 0x7fe86856dbc0> 14:49:32 when = 'setup' 14:49:32 reraise = (, ) 14:49:32 14:49:32 @classmethod 14:49:32 def from_call( 14:49:32 cls, 14:49:32 func: Callable[[], TResult], 14:49:32 when: Literal["collect", "setup", "call", "teardown"], 14:49:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:32 ) -> CallInfo[TResult]: 14:49:32 """Call func, wrapping the result in a CallInfo. 14:49:32 14:49:32 :param func: 14:49:32 The function to call. Called without arguments. 14:49:32 :type func: Callable[[], _pytest.runner.TResult] 14:49:32 :param when: 14:49:32 The phase in which the function is called. 14:49:32 :param reraise: 14:49:32 Exception or exceptions that shall propagate if raised by the 14:49:32 function, instead of being wrapped in the CallInfo. 14:49:32 """ 14:49:32 excinfo = None 14:49:32 instant = timing.Instant() 14:49:32 try: 14:49:32 > result: TResult | None = func() 14:49:32 ^^^^^^ 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:32 lambda: runtest_hook(item=item, **kwds), 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:32 yield 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:32 return (yield) 14:49:32 ^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:32 item.session._setupstate.setup(item) 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:32 col.setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:32 super().setup() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:32 self._request._fillfixtures() 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:32 fixturedef = self._get_active_fixturedef(argname) 14:49:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:32 fixturedef.execute(request=subrequest) 14:49:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:32 14:49:32 self = 14:49:32 request = > 14:49:32 14:49:32 def execute(self, request: SubRequest) -> FixtureValue: 14:49:32 """Return the value of this fixture, executing it if not cached.""" 14:49:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:32 # This needs to be done before checking if we have a cached value, since 14:49:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:32 # parametrization, they finalize themselves and fixtures depending on it 14:49:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:32 # See #4871 14:49:32 requested_fixtures_that_should_finalize_us = [] 14:49:32 for argname in self.argnames: 14:49:32 fixturedef = request._get_active_fixturedef(argname) 14:49:32 # Saves requested fixtures in a list so we later can add our finalizer 14:49:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:32 # down first. This is generally handled by SetupState, but still currently 14:49:32 # needed when this fixture is not parametrized but depends on a parametrized 14:49:32 # fixture. 14:49:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:32 14:49:32 # Check for (and return) cached value/exception. 14:49:32 if self.cached_result is not None: 14:49:32 request_cache_key = self.cache_key(request) 14:49:32 cache_key = self.cached_result[1] 14:49:32 try: 14:49:32 # Attempt to make a normal == check: this might fail for objects 14:49:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:32 cache_hit = bool(request_cache_key == cache_key) 14:49:32 except (ValueError, RuntimeError): 14:49:32 # If the comparison raises, use 'is' as fallback. 14:49:32 cache_hit = request_cache_key is cache_key 14:49:32 14:49:32 if cache_hit: 14:49:32 if self.cached_result[2] is not None: 14:49:32 exc, exc_tb = self.cached_result[2] 14:49:32 raise exc.with_traceback(exc_tb) 14:49:32 else: 14:49:32 return self.cached_result[0] 14:49:32 # We have a previous but differently parametrized fixture instance 14:49:32 # so we need to tear it down before creating a new one. 14:49:32 self.finish(request) 14:49:32 assert self.cached_result is None 14:49:32 14:49:32 # Add finalizer to requested fixtures we saved previously. 14:49:32 # We make sure to do this after checking for cached value to avoid 14:49:32 # adding our finalizer multiple times. (#12135) 14:49:32 finalizer = functools.partial(self.finish, request=request) 14:49:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:32 parent_fixture.addfinalizer(finalizer) 14:49:32 14:49:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:32 # which is executed last. 14:49:32 > assert not self._finalizers 14:49:32 ^^^^^^^^^^^^^^^^^^^^ 14:49:32 E AssertionError 14:49:32 14:49:32 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:32 =========================== short test summary info ============================ 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 14:49:32 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 14:49:32 21 errors in 104.17s (0:01:44) 14:49:32 Etests121: exit 1 (104.48 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 pid=3634 14:49:32 EEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 53.19 seconds 14:49:36 tests71: freeze> python -m pip freeze --all 14:49:36 Etests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:49:37 tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 14:49:37 using environment variables from ./karaf71.env 14:49:37 pytest -q transportpce_tests/7.1/test01_portmapping.py 14:49:37 EEEEEEEE [100%] 14:49:38 ==================================== ERRORS ==================================== 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 14:49:38 14:49:38 cls = 14:49:38 14:49:38 @classmethod 14:49:38 def setUpClass(cls): 14:49:38 cls.init_failed = False 14:49:38 os.environ['JAVA_MIN_MEM'] = '1024M' 14:49:38 os.environ['JAVA_MAX_MEM'] = '4096M' 14:49:38 > cls.processes = test_utils.start_tpce() 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 14:49:38 transportpce_tests/tapi/test01_abstracted_topology.py:148: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 def start_tpce(): 14:49:38 if 'NO_ODL_STARTUP' in os.environ: 14:49:38 print('No OpenDaylight instance to start!') 14:49:38 return [] 14:49:38 print('starting OpenDaylight...') 14:49:38 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:49:38 process = start_lighty() 14:49:38 else: 14:49:38 process = start_karaf() 14:49:38 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:49:38 print('OpenDaylight started !') 14:49:38 else: 14:49:38 print('OpenDaylight failed to start !') 14:49:38 shutdown_process(process) 14:49:38 for pid in process_list: 14:49:38 shutdown_process(pid) 14:49:38 > sys.exit(1) 14:49:38 E SystemExit: 1 14:49:38 14:49:38 transportpce_tests/common/test_utils.py:232: SystemExit 14:49:38 ---------------------------- Captured stdout setup ----------------------------- 14:49:38 starting OpenDaylight... 14:49:38 starting KARAF (karaf221) TransportPCE build... 14:49:38 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f818dbc0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e34c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f995f380> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa897740> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e3560> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e3880> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f818dbc0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f818dbc0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2e80> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2660> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2d40> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2660> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e89a80> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f818ce00> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e89c60> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f818ce00> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e89f80> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6fa8491c0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e89260> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e893a0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e89120> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e8a480> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e88900> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e8aa20> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e88720> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e88ea0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e89a80> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e89260> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e8a020> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e894e0> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f81e2700> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 14:49:38 14:49:38 cls = 14:49:38 func = . at 0x7fb6f7e8b560> 14:49:38 when = 'setup' 14:49:38 reraise = (, ) 14:49:38 14:49:38 @classmethod 14:49:38 def from_call( 14:49:38 cls, 14:49:38 func: Callable[[], TResult], 14:49:38 when: Literal["collect", "setup", "call", "teardown"], 14:49:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:38 ) -> CallInfo[TResult]: 14:49:38 """Call func, wrapping the result in a CallInfo. 14:49:38 14:49:38 :param func: 14:49:38 The function to call. Called without arguments. 14:49:38 :type func: Callable[[], _pytest.runner.TResult] 14:49:38 :param when: 14:49:38 The phase in which the function is called. 14:49:38 :param reraise: 14:49:38 Exception or exceptions that shall propagate if raised by the 14:49:38 function, instead of being wrapped in the CallInfo. 14:49:38 """ 14:49:38 excinfo = None 14:49:38 instant = timing.Instant() 14:49:38 try: 14:49:38 > result: TResult | None = func() 14:49:38 ^^^^^^ 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:38 lambda: runtest_hook(item=item, **kwds), 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:38 yield 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:38 return (yield) 14:49:38 ^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:38 item.session._setupstate.setup(item) 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:38 col.setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:38 super().setup() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:38 self._request._fillfixtures() 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:38 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:38 fixturedef = self._get_active_fixturedef(argname) 14:49:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:38 fixturedef.execute(request=subrequest) 14:49:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:38 14:49:38 self = 14:49:38 request = > 14:49:38 14:49:38 def execute(self, request: SubRequest) -> FixtureValue: 14:49:38 """Return the value of this fixture, executing it if not cached.""" 14:49:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:38 # This needs to be done before checking if we have a cached value, since 14:49:38 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:38 # parametrization, they finalize themselves and fixtures depending on it 14:49:38 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:38 # See #4871 14:49:38 requested_fixtures_that_should_finalize_us = [] 14:49:38 for argname in self.argnames: 14:49:38 fixturedef = request._get_active_fixturedef(argname) 14:49:38 # Saves requested fixtures in a list so we later can add our finalizer 14:49:38 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:38 # down first. This is generally handled by SetupState, but still currently 14:49:38 # needed when this fixture is not parametrized but depends on a parametrized 14:49:38 # fixture. 14:49:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:38 14:49:38 # Check for (and return) cached value/exception. 14:49:38 if self.cached_result is not None: 14:49:38 request_cache_key = self.cache_key(request) 14:49:38 cache_key = self.cached_result[1] 14:49:38 try: 14:49:38 # Attempt to make a normal == check: this might fail for objects 14:49:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:38 cache_hit = bool(request_cache_key == cache_key) 14:49:38 except (ValueError, RuntimeError): 14:49:38 # If the comparison raises, use 'is' as fallback. 14:49:38 cache_hit = request_cache_key is cache_key 14:49:38 14:49:38 if cache_hit: 14:49:38 if self.cached_result[2] is not None: 14:49:38 exc, exc_tb = self.cached_result[2] 14:49:38 raise exc.with_traceback(exc_tb) 14:49:38 else: 14:49:38 return self.cached_result[0] 14:49:38 # We have a previous but differently parametrized fixture instance 14:49:38 # so we need to tear it down before creating a new one. 14:49:38 self.finish(request) 14:49:38 assert self.cached_result is None 14:49:38 14:49:38 # Add finalizer to requested fixtures we saved previously. 14:49:38 # We make sure to do this after checking for cached value to avoid 14:49:38 # adding our finalizer multiple times. (#12135) 14:49:38 finalizer = functools.partial(self.finish, request=request) 14:49:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:38 parent_fixture.addfinalizer(finalizer) 14:49:38 14:49:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:38 # which is executed last. 14:49:38 > assert not self._finalizers 14:49:38 ^^^^^^^^^^^^^^^^^^^^ 14:49:38 E AssertionError 14:49:38 14:49:38 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:38 =========================== short test summary info ============================ 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 14:49:38 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 14:49:38 51 errors in 110.07s (0:01:50) 14:49:38 tests_tapi: exit 1 (110.36 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi pid=3656 14:49:38 tests_tapi: FAIL ✖ in 1 minute 59.23 seconds 14:49:38 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:49:44 tests221: freeze> python -m pip freeze --all 14:49:45 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:49:45 tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 14:49:45 using environment variables from ./karaf221.env 14:49:45 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 14:51:17 EEEEEEEEEEEE [100%] 14:51:19 ==================================== ERRORS ==================================== 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 14:51:19 14:51:19 cls = 14:51:19 14:51:19 @classmethod 14:51:19 def setUpClass(cls): 14:51:19 > cls.processes = test_utils.start_tpce() 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 14:51:19 transportpce_tests/7.1/test01_portmapping.py:32: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 def start_tpce(): 14:51:19 if 'NO_ODL_STARTUP' in os.environ: 14:51:19 print('No OpenDaylight instance to start!') 14:51:19 return [] 14:51:19 print('starting OpenDaylight...') 14:51:19 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:51:19 process = start_lighty() 14:51:19 else: 14:51:19 process = start_karaf() 14:51:19 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:51:19 print('OpenDaylight started !') 14:51:19 else: 14:51:19 print('OpenDaylight failed to start !') 14:51:19 shutdown_process(process) 14:51:19 for pid in process_list: 14:51:19 shutdown_process(pid) 14:51:19 > sys.exit(1) 14:51:19 E SystemExit: 1 14:51:19 14:51:19 transportpce_tests/common/test_utils.py:232: SystemExit 14:51:19 ---------------------------- Captured stdout setup ----------------------------- 14:51:19 starting OpenDaylight... 14:51:19 starting KARAF (karaf71) TransportPCE build... 14:51:19 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe6e700> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe93740> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aae57cea0> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe6e700> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aad637e20> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe6e700> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe93600> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe91d00> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe93920> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe937e0> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 14:51:19 14:51:19 cls = 14:51:19 func = . at 0x7f3aabe6e700> 14:51:19 when = 'setup' 14:51:19 reraise = (, ) 14:51:19 14:51:19 @classmethod 14:51:19 def from_call( 14:51:19 cls, 14:51:19 func: Callable[[], TResult], 14:51:19 when: Literal["collect", "setup", "call", "teardown"], 14:51:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:19 ) -> CallInfo[TResult]: 14:51:19 """Call func, wrapping the result in a CallInfo. 14:51:19 14:51:19 :param func: 14:51:19 The function to call. Called without arguments. 14:51:19 :type func: Callable[[], _pytest.runner.TResult] 14:51:19 :param when: 14:51:19 The phase in which the function is called. 14:51:19 :param reraise: 14:51:19 Exception or exceptions that shall propagate if raised by the 14:51:19 function, instead of being wrapped in the CallInfo. 14:51:19 """ 14:51:19 excinfo = None 14:51:19 instant = timing.Instant() 14:51:19 try: 14:51:19 > result: TResult | None = func() 14:51:19 ^^^^^^ 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:19 lambda: runtest_hook(item=item, **kwds), 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:19 yield 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:19 return (yield) 14:51:19 ^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:19 item.session._setupstate.setup(item) 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:19 col.setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:19 super().setup() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:19 self._request._fillfixtures() 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:19 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:19 fixturedef = self._get_active_fixturedef(argname) 14:51:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:19 fixturedef.execute(request=subrequest) 14:51:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:19 14:51:19 self = 14:51:19 request = > 14:51:19 14:51:19 def execute(self, request: SubRequest) -> FixtureValue: 14:51:19 """Return the value of this fixture, executing it if not cached.""" 14:51:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:19 # This needs to be done before checking if we have a cached value, since 14:51:19 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:19 # parametrization, they finalize themselves and fixtures depending on it 14:51:19 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:19 # See #4871 14:51:19 requested_fixtures_that_should_finalize_us = [] 14:51:19 for argname in self.argnames: 14:51:19 fixturedef = request._get_active_fixturedef(argname) 14:51:19 # Saves requested fixtures in a list so we later can add our finalizer 14:51:19 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:19 # down first. This is generally handled by SetupState, but still currently 14:51:19 # needed when this fixture is not parametrized but depends on a parametrized 14:51:19 # fixture. 14:51:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:19 14:51:19 # Check for (and return) cached value/exception. 14:51:19 if self.cached_result is not None: 14:51:19 request_cache_key = self.cache_key(request) 14:51:19 cache_key = self.cached_result[1] 14:51:19 try: 14:51:19 # Attempt to make a normal == check: this might fail for objects 14:51:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:19 cache_hit = bool(request_cache_key == cache_key) 14:51:19 except (ValueError, RuntimeError): 14:51:19 # If the comparison raises, use 'is' as fallback. 14:51:19 cache_hit = request_cache_key is cache_key 14:51:19 14:51:19 if cache_hit: 14:51:19 if self.cached_result[2] is not None: 14:51:19 exc, exc_tb = self.cached_result[2] 14:51:19 raise exc.with_traceback(exc_tb) 14:51:19 else: 14:51:19 return self.cached_result[0] 14:51:19 # We have a previous but differently parametrized fixture instance 14:51:19 # so we need to tear it down before creating a new one. 14:51:19 self.finish(request) 14:51:19 assert self.cached_result is None 14:51:19 14:51:19 # Add finalizer to requested fixtures we saved previously. 14:51:19 # We make sure to do this after checking for cached value to avoid 14:51:19 # adding our finalizer multiple times. (#12135) 14:51:19 finalizer = functools.partial(self.finish, request=request) 14:51:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:19 parent_fixture.addfinalizer(finalizer) 14:51:19 14:51:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:19 # which is executed last. 14:51:19 > assert not self._finalizers 14:51:19 ^^^^^^^^^^^^^^^^^^^^ 14:51:19 E AssertionError 14:51:19 14:51:19 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:19 =========================== short test summary info ============================ 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 14:51:19 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 14:51:19 12 errors in 102.40s (0:01:42) 14:51:19 tests71: exit 1 (102.66 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 pid=3792 14:51:25 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:51:32 ==================================== ERRORS ==================================== 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:51:32 14:51:32 cls = 14:51:32 14:51:32 @classmethod 14:51:32 def setUpClass(cls): 14:51:32 > cls.processes = test_utils.start_tpce() 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 14:51:32 transportpce_tests/2.2.1/test01_portmapping.py:33: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 def start_tpce(): 14:51:32 if 'NO_ODL_STARTUP' in os.environ: 14:51:32 print('No OpenDaylight instance to start!') 14:51:32 return [] 14:51:32 print('starting OpenDaylight...') 14:51:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:51:32 process = start_lighty() 14:51:32 else: 14:51:32 process = start_karaf() 14:51:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:51:32 print('OpenDaylight started !') 14:51:32 else: 14:51:32 print('OpenDaylight failed to start !') 14:51:32 shutdown_process(process) 14:51:32 for pid in process_list: 14:51:32 shutdown_process(pid) 14:51:32 > sys.exit(1) 14:51:32 E SystemExit: 1 14:51:32 14:51:32 transportpce_tests/common/test_utils.py:232: SystemExit 14:51:32 ---------------------------- Captured stdout setup ----------------------------- 14:51:32 starting OpenDaylight... 14:51:32 starting KARAF (karaf221) TransportPCE build... 14:51:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:51:32 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e37560> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9753ec0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4aaeeaa20> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4abe304a0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97aeca0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9753ec0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4aaeeaa20> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97accc0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e376a0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9753ec0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97ac360> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e376a0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97af9c0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97af880> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36020> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36020> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97afb00> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97acb80> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97afc40> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97af880> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97ac360> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97af1a0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97af100> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97ae5c0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97aeca0> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a97af740> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 14:51:32 14:51:32 cls = 14:51:32 func = . at 0x7fe4a9e36340> 14:51:32 when = 'setup' 14:51:32 reraise = (, ) 14:51:32 14:51:32 @classmethod 14:51:32 def from_call( 14:51:32 cls, 14:51:32 func: Callable[[], TResult], 14:51:32 when: Literal["collect", "setup", "call", "teardown"], 14:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:32 ) -> CallInfo[TResult]: 14:51:32 """Call func, wrapping the result in a CallInfo. 14:51:32 14:51:32 :param func: 14:51:32 The function to call. Called without arguments. 14:51:32 :type func: Callable[[], _pytest.runner.TResult] 14:51:32 :param when: 14:51:32 The phase in which the function is called. 14:51:32 :param reraise: 14:51:32 Exception or exceptions that shall propagate if raised by the 14:51:32 function, instead of being wrapped in the CallInfo. 14:51:32 """ 14:51:32 excinfo = None 14:51:32 instant = timing.Instant() 14:51:32 try: 14:51:32 > result: TResult | None = func() 14:51:32 ^^^^^^ 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:32 lambda: runtest_hook(item=item, **kwds), 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:32 yield 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:32 return (yield) 14:51:32 ^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:32 item.session._setupstate.setup(item) 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:32 col.setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:32 super().setup() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:32 self._request._fillfixtures() 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:32 fixturedef = self._get_active_fixturedef(argname) 14:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:32 fixturedef.execute(request=subrequest) 14:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:32 14:51:32 self = 14:51:32 request = > 14:51:32 14:51:32 def execute(self, request: SubRequest) -> FixtureValue: 14:51:32 """Return the value of this fixture, executing it if not cached.""" 14:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:32 # This needs to be done before checking if we have a cached value, since 14:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:32 # parametrization, they finalize themselves and fixtures depending on it 14:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:32 # See #4871 14:51:32 requested_fixtures_that_should_finalize_us = [] 14:51:32 for argname in self.argnames: 14:51:32 fixturedef = request._get_active_fixturedef(argname) 14:51:32 # Saves requested fixtures in a list so we later can add our finalizer 14:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:32 # down first. This is generally handled by SetupState, but still currently 14:51:32 # needed when this fixture is not parametrized but depends on a parametrized 14:51:32 # fixture. 14:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:32 14:51:32 # Check for (and return) cached value/exception. 14:51:32 if self.cached_result is not None: 14:51:32 request_cache_key = self.cache_key(request) 14:51:32 cache_key = self.cached_result[1] 14:51:32 try: 14:51:32 # Attempt to make a normal == check: this might fail for objects 14:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:32 cache_hit = bool(request_cache_key == cache_key) 14:51:32 except (ValueError, RuntimeError): 14:51:32 # If the comparison raises, use 'is' as fallback. 14:51:32 cache_hit = request_cache_key is cache_key 14:51:32 14:51:32 if cache_hit: 14:51:32 if self.cached_result[2] is not None: 14:51:32 exc, exc_tb = self.cached_result[2] 14:51:32 raise exc.with_traceback(exc_tb) 14:51:32 else: 14:51:32 return self.cached_result[0] 14:51:32 # We have a previous but differently parametrized fixture instance 14:51:32 # so we need to tear it down before creating a new one. 14:51:32 self.finish(request) 14:51:32 assert self.cached_result is None 14:51:32 14:51:32 # Add finalizer to requested fixtures we saved previously. 14:51:32 # We make sure to do this after checking for cached value to avoid 14:51:32 # adding our finalizer multiple times. (#12135) 14:51:32 finalizer = functools.partial(self.finish, request=request) 14:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:32 parent_fixture.addfinalizer(finalizer) 14:51:32 14:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:32 # which is executed last. 14:51:32 > assert not self._finalizers 14:51:32 ^^^^^^^^^^^^^^^^^^^^ 14:51:32 E AssertionError 14:51:32 14:51:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:32 =========================== short test summary info ============================ 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 14:51:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 14:51:32 35 errors in 106.76s (0:01:46) 14:51:32 tests71: FAIL ✖ in 1 minute 49.18 seconds 14:51:32 tests221: exit 1 (107.04 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 pid=3854 14:51:32 tests221: FAIL ✖ in 1 minute 53.68 seconds 14:51:32 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:51:42 tests_hybrid: freeze> python -m pip freeze --all 14:51:42 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:51:42 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid 14:51:42 using environment variables from ./karaf221.env 14:51:42 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 14:53:22 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:53:34 ==================================== ERRORS ==================================== 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 14:53:34 14:53:34 cls = 14:53:34 14:53:34 @classmethod 14:53:34 def setUpClass(cls): 14:53:34 > cls.processes = test_utils.start_tpce() 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 14:53:34 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 def start_tpce(): 14:53:34 if 'NO_ODL_STARTUP' in os.environ: 14:53:34 print('No OpenDaylight instance to start!') 14:53:34 return [] 14:53:34 print('starting OpenDaylight...') 14:53:34 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:53:34 process = start_lighty() 14:53:34 else: 14:53:34 process = start_karaf() 14:53:34 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:53:34 print('OpenDaylight started !') 14:53:34 else: 14:53:34 print('OpenDaylight failed to start !') 14:53:34 shutdown_process(process) 14:53:34 for pid in process_list: 14:53:34 shutdown_process(pid) 14:53:34 > sys.exit(1) 14:53:34 E SystemExit: 1 14:53:34 14:53:34 transportpce_tests/common/test_utils.py:232: SystemExit 14:53:34 ---------------------------- Captured stdout setup ----------------------------- 14:53:34 starting OpenDaylight... 14:53:34 starting KARAF (karaf221) TransportPCE build... 14:53:34 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578fca3e0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066ac0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb57a7527a0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578fcbba0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578fcbf60> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578fcbba0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb5790663e0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88360> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb57b6998a0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578fcbf60> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067420> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88040> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb57b6998a0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067880> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb57b6998a0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88220> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067880> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb57b6998a0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88220> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88220> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579064040> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579064040> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066660> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066de0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066ca0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067d80> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb5790676a0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067c40> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067600> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067740> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067d80> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066ca0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579064040> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067740> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579067880> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066660> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066b60> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb579066de0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb578f88400> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 14:53:34 14:53:34 cls = 14:53:34 func = . at 0x7fb5790663e0> 14:53:34 when = 'setup' 14:53:34 reraise = (, ) 14:53:34 14:53:34 @classmethod 14:53:34 def from_call( 14:53:34 cls, 14:53:34 func: Callable[[], TResult], 14:53:34 when: Literal["collect", "setup", "call", "teardown"], 14:53:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:34 ) -> CallInfo[TResult]: 14:53:34 """Call func, wrapping the result in a CallInfo. 14:53:34 14:53:34 :param func: 14:53:34 The function to call. Called without arguments. 14:53:34 :type func: Callable[[], _pytest.runner.TResult] 14:53:34 :param when: 14:53:34 The phase in which the function is called. 14:53:34 :param reraise: 14:53:34 Exception or exceptions that shall propagate if raised by the 14:53:34 function, instead of being wrapped in the CallInfo. 14:53:34 """ 14:53:34 excinfo = None 14:53:34 instant = timing.Instant() 14:53:34 try: 14:53:34 > result: TResult | None = func() 14:53:34 ^^^^^^ 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:34 lambda: runtest_hook(item=item, **kwds), 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:34 yield 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:34 return (yield) 14:53:34 ^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:34 item.session._setupstate.setup(item) 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:34 col.setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:34 super().setup() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:34 self._request._fillfixtures() 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:34 fixturedef = self._get_active_fixturedef(argname) 14:53:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:34 fixturedef.execute(request=subrequest) 14:53:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:34 14:53:34 self = 14:53:34 request = > 14:53:34 14:53:34 def execute(self, request: SubRequest) -> FixtureValue: 14:53:34 """Return the value of this fixture, executing it if not cached.""" 14:53:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:34 # This needs to be done before checking if we have a cached value, since 14:53:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:34 # parametrization, they finalize themselves and fixtures depending on it 14:53:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:34 # See #4871 14:53:34 requested_fixtures_that_should_finalize_us = [] 14:53:34 for argname in self.argnames: 14:53:34 fixturedef = request._get_active_fixturedef(argname) 14:53:34 # Saves requested fixtures in a list so we later can add our finalizer 14:53:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:34 # down first. This is generally handled by SetupState, but still currently 14:53:34 # needed when this fixture is not parametrized but depends on a parametrized 14:53:34 # fixture. 14:53:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:34 14:53:34 # Check for (and return) cached value/exception. 14:53:34 if self.cached_result is not None: 14:53:34 request_cache_key = self.cache_key(request) 14:53:34 cache_key = self.cached_result[1] 14:53:34 try: 14:53:34 # Attempt to make a normal == check: this might fail for objects 14:53:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:34 cache_hit = bool(request_cache_key == cache_key) 14:53:34 except (ValueError, RuntimeError): 14:53:34 # If the comparison raises, use 'is' as fallback. 14:53:34 cache_hit = request_cache_key is cache_key 14:53:34 14:53:34 if cache_hit: 14:53:34 if self.cached_result[2] is not None: 14:53:34 exc, exc_tb = self.cached_result[2] 14:53:34 raise exc.with_traceback(exc_tb) 14:53:34 else: 14:53:34 return self.cached_result[0] 14:53:34 # We have a previous but differently parametrized fixture instance 14:53:34 # so we need to tear it down before creating a new one. 14:53:34 self.finish(request) 14:53:34 assert self.cached_result is None 14:53:34 14:53:34 # Add finalizer to requested fixtures we saved previously. 14:53:34 # We make sure to do this after checking for cached value to avoid 14:53:34 # adding our finalizer multiple times. (#12135) 14:53:34 finalizer = functools.partial(self.finish, request=request) 14:53:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:34 parent_fixture.addfinalizer(finalizer) 14:53:34 14:53:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:34 # which is executed last. 14:53:34 > assert not self._finalizers 14:53:34 ^^^^^^^^^^^^^^^^^^^^ 14:53:34 E AssertionError 14:53:34 14:53:34 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:34 =========================== short test summary info ============================ 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 14:53:34 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 14:53:34 51 errors in 111.81s (0:01:51) 14:53:34 tests_hybrid: exit 1 (112.10 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid pid=3978 14:53:34 buildcontroller: FAIL code 127 (11.29=setup[10.35]+cmd[0.94] seconds) 14:53:34 sims: OK (16.12=setup[8.02]+cmd[8.10] seconds) 14:53:34 build_karaf_tests121: FAIL code 127 (7.45=setup[7.42]+cmd[0.03] seconds) 14:53:34 testsPCE: FAIL code 1 (185.00=setup[60.73]+cmd[124.27] seconds) 14:53:34 tests121: FAIL code 1 (113.19=setup[8.71]+cmd[104.48] seconds) 14:53:34 build_karaf_tests221: FAIL code 127 (6.95=setup[6.94]+cmd[0.01] seconds) 14:53:34 tests_tapi: FAIL code 1 (119.23=setup[8.87]+cmd[110.36] seconds) 14:53:34 tests221: FAIL code 1 (113.68=setup[6.64]+cmd[107.04] seconds) 14:53:34 build_karaf_tests71: FAIL code 127 (6.74=setup[6.73]+cmd[0.00] seconds) 14:53:34 tests71: FAIL code 1 (109.18=setup[6.52]+cmd[102.66] seconds) 14:53:34 build_karaf_tests190: FAIL code 127 (7.92=setup[7.86]+cmd[0.06] seconds) 14:53:34 tests190: FAIL code 1 (111.14=setup[8.79]+cmd[102.35] seconds) 14:53:34 tests_hybrid: FAIL code 1 (122.13=setup[10.03]+cmd[112.10] seconds) 14:53:34 buildlighty: FAIL code 9 (8.12=setup[8.11]+cmd[0.01] seconds) 14:53:34 docs: OK (23.63=setup[21.45]+cmd[2.19] seconds) 14:53:34 docs-linkcheck: OK (28.17=setup[21.00]+cmd[7.17] seconds) 14:53:34 checkbashisms: OK (3.00=setup[1.78]+cmd[0.00,0.04,1.18] seconds) 14:53:34 pre-commit: OK (48.36=setup[3.28]+cmd[0.00,0.00,38.28,6.80] seconds) 14:53:34 pylint: OK (25.89=setup[4.92]+cmd[20.98] seconds) 14:53:34 evaluation failed :( (583.13 seconds) 14:53:34 + tox_status=1 14:53:34 + echo '---> Completed tox runs' 14:53:34 ---> Completed tox runs 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/build_karaf_tests121/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=build_karaf_tests121 14:53:34 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests121 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/build_karaf_tests190/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=build_karaf_tests190 14:53:34 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests190 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/build_karaf_tests221/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=build_karaf_tests221 14:53:34 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests221 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/build_karaf_tests71/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=build_karaf_tests71 14:53:34 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests71 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/buildcontroller/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=buildcontroller 14:53:34 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildcontroller 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/buildlighty/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=buildlighty 14:53:34 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildlighty 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/checkbashisms/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=checkbashisms 14:53:34 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/checkbashisms 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/docs-linkcheck/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=docs-linkcheck 14:53:34 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs-linkcheck 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/docs/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=docs 14:53:34 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/pre-commit/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=pre-commit 14:53:34 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pre-commit 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/pylint/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=pylint 14:53:34 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pylint 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/sims/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=sims 14:53:34 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/sims 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/tests121/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=tests121 14:53:34 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests121 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/tests190/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=tests190 14:53:34 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests190 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/tests221/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=tests221 14:53:34 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests221 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/tests71/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=tests71 14:53:34 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests71 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/testsPCE/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=testsPCE 14:53:34 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/testsPCE 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/tests_hybrid/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=tests_hybrid 14:53:34 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_hybrid 14:53:34 + for i in .tox/*/log 14:53:34 ++ echo .tox/tests_tapi/log 14:53:34 ++ awk -F/ '{print $2}' 14:53:34 + tox_env=tests_tapi 14:53:34 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_tapi 14:53:34 + DOC_DIR=docs/_build/html 14:53:34 + [[ -d docs/_build/html ]] 14:53:34 + echo '---> Archiving generated docs' 14:53:34 ---> Archiving generated docs 14:53:34 + mv docs/_build/html /w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:53:35 + echo '---> tox-run.sh ends' 14:53:35 ---> tox-run.sh ends 14:53:35 + test 1 -eq 0 14:53:35 + exit 1 14:53:35 ++ '[' 1 = 1 ']' 14:53:35 ++ '[' -x /usr/bin/clear_console ']' 14:53:35 ++ /usr/bin/clear_console -q 14:53:36 Build step 'Execute shell' marked build as failure 14:53:36 $ ssh-agent -k 14:53:36 unset SSH_AUTH_SOCK; 14:53:36 unset SSH_AGENT_PID; 14:53:36 echo Agent pid 1566 killed; 14:53:36 [ssh-agent] Stopped. 14:53:37 [PostBuildScript] - [INFO] Executing post build scripts. 14:53:37 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins11709884237179181750.sh 14:53:37 ---> sysstat.sh 14:53:37 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins4348452870077549970.sh 14:53:37 ---> package-listing.sh 14:53:37 ++ facter osfamily 14:53:37 ++ tr '[:upper:]' '[:lower:]' 14:53:38 + OS_FAMILY=debian 14:53:38 + workspace=/w/workspace/transportpce-tox-verify-vanadium 14:53:38 + START_PACKAGES=/tmp/packages_start.txt 14:53:38 + END_PACKAGES=/tmp/packages_end.txt 14:53:38 + DIFF_PACKAGES=/tmp/packages_diff.txt 14:53:38 + PACKAGES=/tmp/packages_start.txt 14:53:38 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:53:38 + PACKAGES=/tmp/packages_end.txt 14:53:38 + case "${OS_FAMILY}" in 14:53:38 + dpkg -l 14:53:38 + grep '^ii' 14:53:38 + '[' -f /tmp/packages_start.txt ']' 14:53:38 + '[' -f /tmp/packages_end.txt ']' 14:53:38 + diff /tmp/packages_start.txt /tmp/packages_end.txt 14:53:38 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:53:38 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:53:38 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:53:38 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins8396417965154291850.sh 14:53:38 ---> capture-instance-metadata.sh 14:53:38 Setup pyenv: 14:53:38 system 14:53:38 3.8.20 14:53:38 3.9.20 14:53:38 3.10.15 14:53:38 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:53:38 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YmB6 from file:/tmp/.os_lf_venv 14:53:38 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:53:40 lf-activate-venv(): INFO: Installing additional packages: lftools 14:54:05 lf-activate-venv(): INFO: Adding /tmp/venv-YmB6/bin to PATH 14:54:05 INFO: Running in OpenStack, capturing instance metadata 14:54:06 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins11856377726142474308.sh 14:54:06 provisioning config files... 14:54:06 Could not find credentials [logs] for transportpce-tox-verify-vanadium #20 14:54:06 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-vanadium@tmp/config3672763401214738394tmp 14:54:06 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 14:54:06 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 14:54:06 provisioning config files... 14:54:08 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 14:54:08 [EnvInject] - Injecting environment variables from a build step. 14:54:08 [EnvInject] - Injecting as environment variables the properties content 14:54:08 SERVER_ID=logs 14:54:08 14:54:08 [EnvInject] - Variables injected successfully. 14:54:08 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins638921401955734424.sh 14:54:08 ---> create-netrc.sh 14:54:08 WARN: Log server credential not found. 14:54:08 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins4895767778942349438.sh 14:54:08 ---> python-tools-install.sh 14:54:08 Setup pyenv: 14:54:08 system 14:54:08 3.8.20 14:54:08 3.9.20 14:54:08 3.10.15 14:54:09 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:09 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YmB6 from file:/tmp/.os_lf_venv 14:54:09 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:11 lf-activate-venv(): INFO: Installing additional packages: lftools 14:54:22 lf-activate-venv(): INFO: Adding /tmp/venv-YmB6/bin to PATH 14:54:22 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins9236248369705150576.sh 14:54:22 ---> uv-install.sh 14:54:22 uv 0.12.9 is already installed 14:54:22 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:54:22 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins5771509727358012611.sh 14:54:22 ---> sudo-logs.sh 14:54:22 Archiving 'sudo' log.. 14:54:22 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins6338749325368894514.sh 14:54:22 ---> job-cost.sh 14:54:22 INFO: Activating Python virtual environment... 14:54:22 Setup pyenv: 14:54:22 system 14:54:22 3.8.20 14:54:22 3.9.20 14:54:22 3.10.15 14:54:22 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:23 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YmB6 from file:/tmp/.os_lf_venv 14:54:23 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:24 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 14:54:33 lf-activate-venv(): INFO: Adding /tmp/venv-YmB6/bin to PATH 14:54:33 INFO: No stack-cost file found 14:54:33 INFO: Instance uptime: 816s 14:54:33 INFO: Fetching instance metadata (attempt 1 of 3)... 14:54:33 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 14:54:33 INFO: Successfully fetched instance metadata 14:54:33 INFO: Instance type: v3-standard-4 14:54:33 INFO: Retrieving pricing info for: v3-standard-4 14:54:33 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 14:54:33 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=816 14:54:34 INFO: Successfully fetched Vexxhost pricing API 14:54:34 INFO: Retrieved cost: 0.11 14:54:34 INFO: Retrieved resource: v3-standard-4 14:54:34 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-vanadium/archives/cost 14:54:34 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-vanadium/archives/cost.csv 14:54:34 INFO: Successfully archived job cost data 14:54:34 DEBUG: Cost data: transportpce-tox-verify-vanadium,20,2026-09-04 14:54:34,v3-standard-4,816,0.11,0.00,FAILURE 14:54:34 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins2681358977171378096.sh 14:54:34 ---> logs-deploy.sh 14:54:34 Setup pyenv: 14:54:34 system 14:54:34 3.8.20 14:54:34 3.9.20 14:54:34 3.10.15 14:54:34 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:34 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YmB6 from file:/tmp/.os_lf_venv 14:54:34 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:36 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 14:54:47 lf-activate-venv(): INFO: Adding /tmp/venv-YmB6/bin to PATH 14:54:47 WARNING: Nexus logging server not set 14:54:47 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-vanadium/20/ 14:54:47 INFO: archiving logs to S3 14:54:48 ---> uname -a: 14:54:48 Linux prd-ubuntu2204-docker-4c-16g-11 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 14:54:48 14:54:48 14:54:48 ---> lscpu: 14:54:48 Architecture: x86_64 14:54:48 CPU op-mode(s): 32-bit, 64-bit 14:54:48 Address sizes: 40 bits physical, 48 bits virtual 14:54:48 Byte Order: Little Endian 14:54:48 CPU(s): 4 14:54:48 On-line CPU(s) list: 0-3 14:54:48 Vendor ID: AuthenticAMD 14:54:48 Model name: AMD EPYC-Rome Processor 14:54:48 CPU family: 23 14:54:48 Model: 49 14:54:48 Thread(s) per core: 1 14:54:48 Core(s) per socket: 1 14:54:48 Socket(s): 4 14:54:48 Stepping: 0 14:54:48 BogoMIPS: 5599.99 14:54:48 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities 14:54:48 Virtualization: AMD-V 14:54:48 Hypervisor vendor: KVM 14:54:48 Virtualization type: full 14:54:48 L1d cache: 128 KiB (4 instances) 14:54:48 L1i cache: 128 KiB (4 instances) 14:54:48 L2 cache: 2 MiB (4 instances) 14:54:48 L3 cache: 64 MiB (4 instances) 14:54:48 NUMA node(s): 1 14:54:48 NUMA node0 CPU(s): 0-3 14:54:48 Vulnerability Gather data sampling: Not affected 14:54:48 Vulnerability Indirect target selection: Not affected 14:54:48 Vulnerability Itlb multihit: Not affected 14:54:48 Vulnerability L1tf: Not affected 14:54:48 Vulnerability Mds: Not affected 14:54:48 Vulnerability Meltdown: Not affected 14:54:48 Vulnerability Mmio stale data: Not affected 14:54:48 Vulnerability Reg file data sampling: Not affected 14:54:48 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 14:54:48 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 14:54:48 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 14:54:48 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 14:54:48 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 14:54:48 Vulnerability Srbds: Not affected 14:54:48 Vulnerability Tsa: Not affected 14:54:48 Vulnerability Tsx async abort: Not affected 14:54:48 Vulnerability Vmscape: Not affected 14:54:48 14:54:48 14:54:48 ---> nproc: 14:54:48 4 14:54:48 14:54:48 14:54:48 ---> df -h: 14:54:48 Filesystem Size Used Avail Use% Mounted on 14:54:48 tmpfs 1.6G 1.1M 1.6G 1% /run 14:54:48 /dev/vda1 78G 11G 67G 14% / 14:54:48 tmpfs 7.9G 0 7.9G 0% /dev/shm 14:54:48 tmpfs 5.0M 0 5.0M 0% /run/lock 14:54:48 /dev/vda15 105M 6.1M 99M 6% /boot/efi 14:54:48 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 14:54:48 14:54:48 14:54:48 ---> free -m: 14:54:48 total used free shared buff/cache available 14:54:48 Mem: 15989 701 9999 4 5288 14944 14:54:48 Swap: 1023 0 1023 14:54:48 14:54:48 14:54:48 ---> ip addr: 14:54:48 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 14:54:48 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 14:54:48 inet 127.0.0.1/8 scope host lo 14:54:48 valid_lft forever preferred_lft forever 14:54:48 inet6 ::1/128 scope host 14:54:48 valid_lft forever preferred_lft forever 14:54:48 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 14:54:48 link/ether fa:16:3e:a3:1f:75 brd ff:ff:ff:ff:ff:ff 14:54:48 altname enp0s3 14:54:48 inet 10.30.170.217/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 14:54:48 valid_lft 85579sec preferred_lft 85579sec 14:54:48 inet6 fe80::f816:3eff:fea3:1f75/64 scope link 14:54:48 valid_lft forever preferred_lft forever 14:54:48 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 14:54:48 link/ether ee:ea:dd:58:98:71 brd ff:ff:ff:ff:ff:ff 14:54:48 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 14:54:48 valid_lft forever preferred_lft forever 14:54:48 14:54:48 14:54:48 ---> sar -b -r -n DEV: 14:54:48 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-11) 09/04/26 _x86_64_ (4 CPU) 14:54:48 14:54:48 14:41:09 LINUX RESTART (4 CPU) 14:54:48 14:54:48 14:54:48 ---> sar -P ALL: 14:54:48 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-11) 09/04/26 _x86_64_ (4 CPU) 14:54:48 14:54:48 14:41:09 LINUX RESTART (4 CPU) 14:54:48 14:54:48 14:54:48