14:42:22 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125750 14:42:22 Running as SYSTEM 14:42:22 [EnvInject] - Loading node environment variables. 14:42:22 Building remotely on prd-ubuntu2204-docker-4c-16g-13 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-vanadium 14:42:22 [ssh-agent] Looking for ssh-agent implementation... 14:42:22 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 14:42:22 $ ssh-agent 14:42:22 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXYj7itW/agent.1562 14:42:22 SSH_AGENT_PID=1564 14:42:22 [ssh-agent] Started. 14:42:23 Running ssh-add (command line suppressed) 14:42:23 Identity added: /w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_893607538205321958.key (/w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_893607538205321958.key) 14:42:23 [ssh-agent] Using credentials jenkins (jenkins-ssh) 14:42:23 The recommended git tool is: NONE 14:42:26 using credential jenkins-ssh 14:42:26 Wiping out workspace first. 14:42:26 Cloning the remote Git repository 14:42:26 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 14:42:26 > git init /w/workspace/transportpce-tox-verify-vanadium # timeout=10 14:42:26 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:42:26 > git --version # timeout=10 14:42:26 > git --version # 'git version 2.34.1' 14:42:26 using GIT_SSH to set credentials jenkins-ssh 14:42:26 Verifying host key using known hosts file, will automatically accept unseen keys 14:42:26 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 14:42:30 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:42:30 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 14:42:31 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:42:31 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:42:31 using GIT_SSH to set credentials jenkins-ssh 14:42:31 Verifying host key using known hosts file, will automatically accept unseen keys 14:42:31 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/50/125750/1 # timeout=10 14:42:31 > git rev-parse 72d43789d4e4383020529b0440487e7eb40bd7bd^{commit} # timeout=10 14:42:31 Checking out Revision 72d43789d4e4383020529b0440487e7eb40bd7bd (refs/changes/50/125750/1) 14:42:31 > git config core.sparsecheckout # timeout=10 14:42:31 > git checkout -f 72d43789d4e4383020529b0440487e7eb40bd7bd # timeout=10 14:42:35 Commit message: "Prefer List.of() to Lists.newArrayList()" 14:42:35 > git rev-parse FETCH_HEAD^{commit} # timeout=10 14:42:35 > git rev-list --no-walk 013f9af60dd041f305f0c75430f1f2f3fb143d21 # timeout=10 14:42:35 > git remote # timeout=10 14:42:35 > git submodule init # timeout=10 14:42:35 > git submodule sync # timeout=10 14:42:35 > git config --get remote.origin.url # timeout=10 14:42:35 > git submodule init # timeout=10 14:42:35 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 14:42:35 ERROR: No submodules found. 14:42:36 provisioning config files... 14:42:36 copy managed file [npmrc] to file:/home/jenkins/.npmrc 14:42:36 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 14:42:36 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins966933052402414946.sh 14:42:36 ---> python-tools-install.sh 14:42:36 Setup pyenv: 14:42:36 * system (set by /opt/pyenv/version) 14:42:36 * 3.8.20 (set by /opt/pyenv/version) 14:42:36 * 3.9.20 (set by /opt/pyenv/version) 14:42:36 3.10.15 14:42:36 3.11.10 14:42:41 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-7Osf 14:42:41 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 14:42:41 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:42:45 lf-activate-venv(): INFO: Installing additional packages: lftools 14:43:11 lf-activate-venv(): INFO: Adding /tmp/venv-7Osf/bin to PATH 14:43:11 Generating Requirements File 14:43:36 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:36 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 14:43:37 Python 3.11.10 14:43:37 pip 26.2.1 from /tmp/venv-7Osf/lib/python3.11/site-packages/pip (python 3.11) 14:43:37 aiohappyeyeballs==2.7.1 14:43:37 aiohttp==3.14.3 14:43:37 aiosignal==1.4.0 14:43:37 appdirs==1.4.4 14:43:37 argcomplete==3.7.2 14:43:37 aspy.yaml==1.3.0 14:43:37 attrs==26.1.0 14:43:37 autopage==0.6.0 14:43:37 beautifulsoup4==4.15.0 14:43:37 boto3==1.43.88 14:43:37 botocore==1.43.88 14:43:37 bs4==0.0.2 14:43:37 certifi==2026.7.22 14:43:37 cffi==2.1.1 14:43:37 cfgv==3.5.0 14:43:37 chardet==7.6.0 14:43:37 charset-normalizer==3.5.1 14:43:37 click==8.5.0 14:43:37 cliff==4.16.0 14:43:37 cmd2==4.2.3 14:43:37 cryptography==3.3.2 14:43:37 debtcollector==3.1.0 14:43:37 decorator==5.3.1 14:43:37 defusedxml==0.7.1 14:43:37 Deprecated==1.3.1 14:43:37 distlib==0.4.3 14:43:37 dnspython==2.8.0 14:43:37 docker==7.2.0 14:43:37 dogpile.cache==1.5.0 14:43:37 durationpy==0.11 14:43:37 email-validator==2.3.0 14:43:37 filelock==3.32.5 14:43:37 frozenlist==1.8.0 14:43:37 future==1.0.0 14:43:37 gitdb==4.0.12 14:43:37 GitPython==3.1.61 14:43:37 httplib2==0.30.2 14:43:37 identify==2.6.19 14:43:37 idna==3.19 14:43:37 importlib-resources==1.5.0 14:43:37 iso8601==2.1.0 14:43:37 Jinja2==3.1.6 14:43:37 jmespath==1.1.0 14:43:37 jsonpatch==1.33 14:43:37 jsonpointer==3.1.1 14:43:37 jsonschema==4.26.0 14:43:37 jsonschema-specifications==2025.9.1 14:43:37 keystoneauth1==5.17.0 14:43:37 kubernetes==36.0.3 14:43:37 lftools==0.37.23 14:43:37 lxml==6.1.3 14:43:37 markdown-it-py==4.2.0 14:43:37 MarkupSafe==3.0.3 14:43:37 mdurl==0.1.2 14:43:37 msgpack==1.2.2 14:43:37 multi_key_dict==2.0.3 14:43:37 multidict==6.7.1 14:43:37 munch==4.0.0 14:43:37 netaddr==1.3.0 14:43:37 niet==1.4.2 14:43:37 nodeenv==1.10.0 14:43:37 oauth2client==4.1.3 14:43:37 oauthlib==3.3.1 14:43:37 openstacksdk==4.20.0 14:43:37 os-service-types==1.9.0 14:43:37 osc-lib==4.7.0 14:43:37 oslo.config==10.7.0 14:43:37 oslo.context==6.5.0 14:43:37 oslo.i18n==6.9.0 14:43:37 oslo.log==8.3.1 14:43:37 oslo.serialization==5.11.0 14:43:37 oslo.utils==10.2.0 14:43:37 packaging==26.3 14:43:37 pbr==7.0.3 14:43:37 platformdirs==4.11.7 14:43:37 prettytable==3.18.0 14:43:37 prompt_toolkit==3.0.53 14:43:37 propcache==0.5.2 14:43:37 psutil==7.2.2 14:43:37 pyasn1==0.6.4 14:43:37 pyasn1_modules==0.4.2 14:43:37 pycparser==3.0 14:43:37 pygerrit2==2.0.15 14:43:37 PyGithub==2.10.0 14:43:37 Pygments==2.21.0 14:43:37 PyJWT==2.13.0 14:43:37 PyNaCl==1.6.2 14:43:37 pyparsing==2.4.7 14:43:37 pyperclip==1.11.0 14:43:37 pyrsistent==0.20.0 14:43:37 python-dateutil==2.9.0.post0 14:43:37 python-discovery==1.6.0 14:43:37 python-heatclient==5.3.0 14:43:37 python-jenkins==1.8.3 14:43:37 python-keystoneclient==6.0.0 14:43:37 python-magnumclient==5.0.0 14:43:37 python-manilaclient==6.3.0 14:43:37 python-openstackclient==10.3.0 14:43:37 python-swiftclient==4.11.0 14:43:37 PyYAML==6.0.3 14:43:37 referencing==0.37.0 14:43:37 requests==2.34.2 14:43:37 requests-oauthlib==2.0.0 14:43:37 rfc3986==2.0.0 14:43:37 rich==15.0.0 14:43:37 rich-argparse==1.8.0 14:43:37 rpds-py==2026.6.3 14:43:37 rsa==4.9.1 14:43:37 ruamel.yaml==0.19.1 14:43:37 ruamel.yaml.clib==0.2.15 14:43:37 s3transfer==0.19.2 14:43:37 simplejson==4.1.2 14:43:37 six==1.17.0 14:43:37 smmap==5.0.3 14:43:37 soupsieve==2.9.2 14:43:37 stevedore==5.9.1 14:43:37 tabulate==0.10.0 14:43:37 toml==0.10.2 14:43:37 tomlkit==0.15.1 14:43:37 tqdm==4.70.0 14:43:37 typing_extensions==4.16.0 14:43:37 urllib3==1.26.20 14:43:37 virtualenv==21.7.8 14:43:37 wcwidth==0.8.3 14:43:37 websocket-client==1.9.2 14:43:37 wrapt==2.4.0 14:43:37 xdg==6.0.0 14:43:37 xmltodict==1.0.4 14:43:37 yarl==1.24.5 14:43:37 yq==4.1.2 14:43:37 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins18087917430223197866.sh 14:43:37 ---> uv-install.sh 14:43:37 Installing uv/uvx (latest) using shell installer 14:43:38 2026-09-04 14:43:38 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-dCQQl5.sh" [1] 14:43:38 downloading uv 0.12.9 x86_64-unknown-linux-gnu 14:43:38 installing to /home/jenkins/.local/bin 14:43:38 uv 14:43:38 uvx 14:43:38 everything's installed! 14:43:39 14:43:39 To add $HOME/.local/bin to your PATH, either restart your shell or run: 14:43:39 14:43:39 source $HOME/.local/bin/env (sh, bash, zsh) 14:43:39 source $HOME/.local/bin/env.fish (fish) 14:43:39 Adding install location to PATH 14:43:39 ---> Validating uv/uvx install 14:43:39 uvx 0.12.9 (x86_64-unknown-linux-gnu) 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 PYTHON=python3 14:43:39 14:43:39 [EnvInject] - Variables injected successfully. 14:43:39 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins13038332389517849252.sh 14:43:39 ---> tox-install.sh 14:43:39 + source /home/jenkins/lf-env.sh 14:43:39 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:39 ++ mktemp -d /tmp/venv-XXXX 14:43:39 + lf_venv=/tmp/venv-IYTZ 14:43:39 + local venv_file=/tmp/.os_lf_venv 14:43:39 + local python=python3 14:43:39 + local options 14:43:39 + local set_path=true 14:43:39 + local install_args= 14:43:39 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:39 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:39 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:39 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:43:39 + true 14:43:39 + case $1 in 14:43:39 + venv_file=/tmp/.toxenv 14:43:39 + shift 2 14:43:39 + true 14:43:39 + case $1 in 14:43:39 + shift 14:43:39 + break 14:43:39 + case $python in 14:43:39 + local pkg_list= 14:43:39 + [[ -d /opt/pyenv ]] 14:43:39 + echo 'Setup pyenv:' 14:43:39 Setup pyenv: 14:43:39 + export PYENV_ROOT=/opt/pyenv 14:43:39 + PYENV_ROOT=/opt/pyenv 14:43:39 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:39 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:39 + pyenv versions 14:43:39 system 14:43:39 3.8.20 14:43:39 3.9.20 14:43:39 3.10.15 14:43:39 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:43:39 + command -v pyenv 14:43:39 ++ pyenv init - --no-rehash 14:43:39 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:43:39 for i in ${!paths[@]}; do 14:43:39 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:43:39 fi; done; 14:43:39 echo "${paths[*]}"'\'')" 14:43:39 export PATH="/opt/pyenv/shims:${PATH}" 14:43:39 export PYENV_SHELL=bash 14:43:39 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:43:39 pyenv() { 14:43:39 local command 14:43:39 command="${1:-}" 14:43:39 if [ "$#" -gt 0 ]; then 14:43:39 shift 14:43:39 fi 14:43:39 14:43:39 case "$command" in 14:43:39 rehash|shell) 14:43:39 eval "$(pyenv "sh-$command" "$@")" 14:43:39 ;; 14:43:39 *) 14:43:39 command pyenv "$command" "$@" 14:43:39 ;; 14:43:39 esac 14:43:39 }' 14:43:39 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:43:39 for i in ${!paths[@]}; do 14:43:39 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:43:39 fi; done; 14:43:39 echo "${paths[*]}"' 14:43:39 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:39 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:39 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:39 ++ export PYENV_SHELL=bash 14:43:39 ++ PYENV_SHELL=bash 14:43:39 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:43:39 +++ complete -F _pyenv pyenv 14:43:39 ++ lf-pyver python3 14:43:39 ++ local py_version_xy=python3 14:43:39 ++ local py_version_xyz= 14:43:39 ++ pyenv versions 14:43:39 ++ local command 14:43:39 ++ command=versions 14:43:39 ++ '[' 1 -gt 0 ']' 14:43:39 ++ shift 14:43:39 ++ case "$command" in 14:43:39 ++ sed 's/^[ *]* //' 14:43:39 ++ command pyenv versions 14:43:39 ++ awk '{ print $1 }' 14:43:39 ++ grep -E '^[0-9.]*[0-9]$' 14:43:39 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:43:39 +++ grep '^3' /tmp/.pyenv_versions 14:43:39 +++ sort -V 14:43:39 +++ tail -n 1 14:43:39 ++ py_version_xyz=3.11.10 14:43:39 ++ [[ -z 3.11.10 ]] 14:43:39 ++ echo 3.11.10 14:43:39 ++ return 0 14:43:39 + pyenv local 3.11.10 14:43:39 + local command 14:43:39 + command=local 14:43:39 + '[' 2 -gt 0 ']' 14:43:39 + shift 14:43:39 + case "$command" in 14:43:39 + command pyenv local 3.11.10 14:43:39 + for arg in "$@" 14:43:39 + case $arg in 14:43:39 + pkg_list+='tox ' 14:43:39 + for arg in "$@" 14:43:39 + case $arg in 14:43:39 + pkg_list+='virtualenv ' 14:43:39 + for arg in "$@" 14:43:39 + case $arg in 14:43:39 + pkg_list+='urllib3~=1.26.15 ' 14:43:39 + [[ -f /tmp/.toxenv ]] 14:43:39 + [[ ! -f /tmp/.toxenv ]] 14:43:39 + [[ -n '' ]] 14:43:39 + python3 -m venv /tmp/venv-IYTZ 14:43:43 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-IYTZ' 14:43:43 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-IYTZ 14:43:43 + echo /tmp/venv-IYTZ 14:43:43 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 14:43:43 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 14:43:43 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:43:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:43:43 + local 'pip_opts=--upgrade --quiet' 14:43:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:43:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:43:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:43:43 + [[ -n '' ]] 14:43:43 + [[ -n '' ]] 14:43:43 + lf-venv-pip-install /tmp/venv-IYTZ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:43:43 + local venv_python=/tmp/venv-IYTZ/bin/python3 14:43:43 + shift 14:43:43 + local upstream=https://pypi.org/simple 14:43:43 + /tmp/venv-IYTZ/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:47 + return 0 14:43:47 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:43:47 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:43:47 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:43:47 + lf-venv-pip-install /tmp/venv-IYTZ/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:47 + local venv_python=/tmp/venv-IYTZ/bin/python3 14:43:47 + shift 14:43:47 + local upstream=https://pypi.org/simple 14:43:47 + /tmp/venv-IYTZ/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:51 + return 0 14:43:51 + type python3 14:43:51 + true 14:43:51 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-IYTZ/bin to PATH' 14:43:51 lf-activate-venv(): INFO: Adding /tmp/venv-IYTZ/bin to PATH 14:43:51 + PATH=/tmp/venv-IYTZ/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:51 + return 0 14:43:51 + python3 --version 14:43:51 Python 3.11.10 14:43:51 + python3 -m pip --version 14:43:51 pip 26.2.1 from /tmp/venv-IYTZ/lib/python3.11/site-packages/pip (python 3.11) 14:43:51 + python3 -m pip freeze 14:43:51 cachetools==7.1.8 14:43:51 colorama==0.4.6 14:43:51 distlib==0.4.3 14:43:51 filelock==3.32.5 14:43:51 packaging==26.3 14:43:51 platformdirs==4.11.7 14:43:51 pluggy==1.6.0 14:43:51 pyproject-api==1.11.0 14:43:51 python-discovery==1.6.0 14:43:51 tomli_w==1.2.0 14:43:51 tox==4.61.2 14:43:51 typing_extensions==4.16.0 14:43:51 urllib3==1.26.20 14:43:51 virtualenv==21.7.8 14:43:51 [transportpce-tox-verify-vanadium] $ /bin/sh -xe /tmp/jenkins6594176088112748495.sh 14:43:51 [EnvInject] - Injecting environment variables from a build step. 14:43:51 [EnvInject] - Injecting as environment variables the properties content 14:43:51 PARALLEL=True 14:43:51 14:43:51 [EnvInject] - Variables injected successfully. 14:43:51 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins17112112672591389042.sh 14:43:51 ---> tox-run.sh 14:43:51 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:51 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:43:51 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:43:51 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:43:51 + cd /w/workspace/transportpce-tox-verify-vanadium/. 14:43:51 + source /home/jenkins/lf-env.sh 14:43:51 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:51 ++ mktemp -d /tmp/venv-XXXX 14:43:51 + lf_venv=/tmp/venv-rdav 14:43:51 + local venv_file=/tmp/.os_lf_venv 14:43:51 + local python=python3 14:43:51 + local options 14:43:51 + local set_path=true 14:43:51 + local install_args= 14:43:51 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:43:51 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:51 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:43:51 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:43:51 + true 14:43:51 + case $1 in 14:43:51 + venv_file=/tmp/.toxenv 14:43:51 + shift 2 14:43:51 + true 14:43:51 + case $1 in 14:43:51 + shift 14:43:51 + break 14:43:51 + case $python in 14:43:51 + local pkg_list= 14:43:51 + [[ -d /opt/pyenv ]] 14:43:51 + echo 'Setup pyenv:' 14:43:51 Setup pyenv: 14:43:51 + export PYENV_ROOT=/opt/pyenv 14:43:51 + PYENV_ROOT=/opt/pyenv 14:43:51 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:51 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:51 + pyenv versions 14:43:51 system 14:43:51 3.8.20 14:43:51 3.9.20 14:43:51 3.10.15 14:43:51 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:43:51 + command -v pyenv 14:43:51 ++ pyenv init - --no-rehash 14:43:51 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:43:51 for i in ${!paths[@]}; do 14:43:51 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:43:51 fi; done; 14:43:51 echo "${paths[*]}"'\'')" 14:43:51 export PATH="/opt/pyenv/shims:${PATH}" 14:43:51 export PYENV_SHELL=bash 14:43:51 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:43:51 pyenv() { 14:43:51 local command 14:43:51 command="${1:-}" 14:43:51 if [ "$#" -gt 0 ]; then 14:43:51 shift 14:43:51 fi 14:43:51 14:43:51 case "$command" in 14:43:51 rehash|shell) 14:43:51 eval "$(pyenv "sh-$command" "$@")" 14:43:51 ;; 14:43:51 *) 14:43:51 command pyenv "$command" "$@" 14:43:51 ;; 14:43:51 esac 14:43:51 }' 14:43:51 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:43:51 for i in ${!paths[@]}; do 14:43:51 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:43:51 fi; done; 14:43:51 echo "${paths[*]}"' 14:43:51 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:51 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:51 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:43:51 ++ export PYENV_SHELL=bash 14:43:51 ++ PYENV_SHELL=bash 14:43:51 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:43:51 +++ complete -F _pyenv pyenv 14:43:51 ++ lf-pyver python3 14:43:51 ++ local py_version_xy=python3 14:43:51 ++ local py_version_xyz= 14:43:51 ++ pyenv versions 14:43:51 ++ local command 14:43:51 ++ command=versions 14:43:51 ++ '[' 1 -gt 0 ']' 14:43:51 ++ shift 14:43:51 ++ case "$command" in 14:43:51 ++ command pyenv versions 14:43:51 ++ sed 's/^[ *]* //' 14:43:51 ++ awk '{ print $1 }' 14:43:51 ++ grep -E '^[0-9.]*[0-9]$' 14:43:51 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:43:51 +++ grep '^3' /tmp/.pyenv_versions 14:43:51 +++ tail -n 1 14:43:51 +++ sort -V 14:43:51 ++ py_version_xyz=3.11.10 14:43:51 ++ [[ -z 3.11.10 ]] 14:43:51 ++ echo 3.11.10 14:43:51 ++ return 0 14:43:51 + pyenv local 3.11.10 14:43:51 + local command 14:43:51 + command=local 14:43:51 + '[' 2 -gt 0 ']' 14:43:51 + shift 14:43:51 + case "$command" in 14:43:51 + command pyenv local 3.11.10 14:43:51 + for arg in "$@" 14:43:51 + case $arg in 14:43:51 + pkg_list+='tox ' 14:43:51 + for arg in "$@" 14:43:51 + case $arg in 14:43:51 + pkg_list+='virtualenv ' 14:43:51 + for arg in "$@" 14:43:51 + case $arg in 14:43:51 + pkg_list+='urllib3~=1.26.15 ' 14:43:51 + [[ -f /tmp/.toxenv ]] 14:43:51 ++ cat /tmp/.toxenv 14:43:51 + lf_venv=/tmp/venv-IYTZ 14:43:51 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-IYTZ from' file:/tmp/.toxenv 14:43:51 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-IYTZ from file:/tmp/.toxenv 14:43:51 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:43:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:43:51 + local 'pip_opts=--upgrade --quiet' 14:43:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:43:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:43:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:43:51 + [[ -n '' ]] 14:43:51 + [[ -n '' ]] 14:43:51 + lf-venv-pip-install /tmp/venv-IYTZ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:43:51 + local venv_python=/tmp/venv-IYTZ/bin/python3 14:43:51 + shift 14:43:51 + local upstream=https://pypi.org/simple 14:43:51 + /tmp/venv-IYTZ/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:52 + return 0 14:43:52 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:43:52 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:43:52 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:43:52 + lf-venv-pip-install /tmp/venv-IYTZ/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:52 + local venv_python=/tmp/venv-IYTZ/bin/python3 14:43:52 + shift 14:43:52 + local upstream=https://pypi.org/simple 14:43:52 + /tmp/venv-IYTZ/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:55 + return 0 14:43:55 + type python3 14:43:55 + true 14:43:55 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-IYTZ/bin to PATH' 14:43:55 lf-activate-venv(): INFO: Adding /tmp/venv-IYTZ/bin to PATH 14:43:55 + PATH=/tmp/venv-IYTZ/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:55 + return 0 14:43:55 + [[ -d /opt/pyenv ]] 14:43:55 + echo '---> Setting up pyenv' 14:43:55 ---> Setting up pyenv 14:43:55 + export PYENV_ROOT=/opt/pyenv 14:43:55 + PYENV_ROOT=/opt/pyenv 14:43:55 + export PATH=/opt/pyenv/bin:/tmp/venv-IYTZ/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:55 + PATH=/opt/pyenv/bin:/tmp/venv-IYTZ/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:55 ++ pwd 14:43:55 + PYTHONPATH=/w/workspace/transportpce-tox-verify-vanadium 14:43:55 + export PYTHONPATH 14:43:55 + export TOX_TESTENV_PASSENV=PYTHONPATH 14:43:55 + TOX_TESTENV_PASSENV=PYTHONPATH 14:43:55 + tox --version 14:43:55 4.61.2 from /tmp/venv-IYTZ/lib/python3.11/site-packages/tox/__init__.py 14:43:55 + PARALLEL=True 14:43:55 + TOX_OPTIONS_LIST= 14:43:55 + [[ -n '' ]] 14:43:55 + case ${PARALLEL,,} in 14:43:55 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 14:43:55 + tox --parallel auto --parallel-live 14:43:55 + tee -a /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tox.log 14:43:56 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:56 docs: install_deps> python -I -m pip install -r docs/requirements.txt 14:43:56 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 14:43:56 checkbashisms: freeze> python -m pip freeze --all 14:43:57 checkbashisms: pip==26.2.1,setuptools==84.0.0 14:43:57 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:43:57 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:57 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 14:43:58 checkbashisms: OK ✔ in 3.14 seconds 14:43:58 pre-commit: install_deps> python -I -m pip install pre-commit 14:44:02 pre-commit: freeze> python -m pip freeze --all 14:44:02 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:44:02 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:44:02 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:44:02 /usr/bin/cpan 14:44:02 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run --all-files --show-diff-on-failure 14:44:02 [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:02 [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:02 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 14:44:03 [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:44:03 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 14:44:04 buildcontroller: freeze> python -m pip freeze --all 14:44:04 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:04 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh 14:44:04 + update-java-alternatives -l 14:44:04 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 14:44:04 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 14:44:04 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 14:44:04 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 14:44:04 update-alternatives: error: no alternatives for jaotc 14:44:04 update-alternatives: error: no alternatives for rmic 14:44:04 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 14:44:04 + java -version 14:44:04 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 14:44:04 21 14:44:04 + JAVA_VER=21 14:44:04 + echo 21 14:44:04 + javac -version 14:44:04 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 14:44:04 + JAVAC_VER=21 14:44:04 21 14:44:04 ok, java is 21 or newer 14:44:04 + echo 21 14:44:04 + [ 21 -ge 21 ] 14:44:04 + [ 21 -ge 21 ] 14:44:04 + echo ok, java is 21 or newer 14:44:04 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz -P /tmp 14:44:05 https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz: 14:44:05 2026-09-04 14:44:05 ERROR 404: Not Found. 14:44:05 + sudo mkdir -p /opt 14:44:05 + sudo tar xf /tmp/apache-maven-3.9.14-bin.tar.gz -C /opt 14:44:05 tar: /tmp/apache-maven-3.9.14-bin.tar.gz: Cannot open: No such file or directory 14:44:05 tar: Error is not recoverable: exiting now 14:44:05 + sudo ln -s /opt/apache-maven-3.9.14 /opt/maven 14:44:05 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 14:44:05 + mvn --version 14:44:05 ./installMavenUbuntu.sh: 28: mvn: not found 14:44:05 buildcontroller: exit 127 (0.85 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh pid=2647 14:44:05 buildcontroller: FAIL ✖ in 9.6 seconds 14:44:05 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 14:44:06 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:44:06 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 14:44:06 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 14:44:07 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 14:44:07 [INFO] Once installed this environment will be reused. 14:44:07 [INFO] This may take a few minutes... 14:44:08 pylint: freeze> python -m pip freeze --all 14:44:08 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:08 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:12 docs-linkcheck: freeze> python -m pip freeze --all 14:44:12 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:44:12 [INFO] Once installed this environment will be reused. 14:44:12 [INFO] This may take a few minutes... 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 19.37 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:17 docs-linkcheck: OK ✔ in 21.6 seconds 14:44:17 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:18 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 14:44:18 [INFO] Once installed this environment will be reused. 14:44:18 [INFO] This may take a few minutes... 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:23 build_karaf_tests121: freeze> python -m pip freeze --all 14:44:23 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:23 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:23 build karaf in karaf121 with ./karaf121.env 14:44:23 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf121 14:44:23 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:23 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:23 build_karaf_tests121: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3178 14:44:23 build_karaf_tests121: FAIL ✖ in 8.56 seconds 14:44:23 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:24 build_karaf_tests221: freeze> python -m pip freeze --all 14:44:24 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:24 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:24 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 14:44:24 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:24 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:24 build karaf in karaf221 with ./karaf221.env 14:44:24 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3200 14:44:25 build_karaf_tests221: FAIL ✖ in 7.71 seconds 14:44:25 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:27 14:44:27 ------------------------------------ 14:44:27 Your code has been rated at 10.00/10 14:44:27 14:44:29 pylint: OK ✔ in 24.17 seconds 14:44:29 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:30 build_karaf_tests71: freeze> python -m pip freeze --all 14:44:30 trim trailing whitespace.................................................Passed 14:44:30 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:30 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:30 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 14:44:30 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:30 build karaf in karaf71 with ./karaf71.env 14:44:30 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:30 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3350 14:44:30 Tabs remover.............................................................Passed 14:44:31 autopep8.................................................................build_karaf_tests71: FAIL ✖ in 7.37 seconds 14:44:31 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:32 build_karaf_tests190: freeze> python -m pip freeze --all 14:44:32 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:32 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:44:32 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc 14:44:32 ./build_karaf_for_tests.sh: 22: mvn: not found 14:44:32 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:44:32 build karaf in karafoc with ./karafoc.env 14:44:32 build_karaf_tests190: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3384 14:44:33 build_karaf_tests190: FAIL ✖ in 8.01 seconds 14:44:33 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:35 [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:35 [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:35 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 14:44:35 [INFO] Once installed this environment will be reused. 14:44:35 [INFO] This may take a few minutes... 14:44:37 buildlighty: freeze> python -m pip freeze --all 14:44:38 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:38 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh 14:44:38 ./build.sh: 7: mvn: not found 14:44:38 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 14:44:38 buildlighty: exit 9 (0.02 seconds) /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh pid=3442 14:44:39 buildlighty: FAIL ✖ in 8.79 seconds 14:44:39 sims: freeze> python -m pip freeze --all 14:44:39 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:39 sims: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./install_lightynode.sh 14:44:39 Using lighynode version 20.1.0.5 14:44:39 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 14:44:43 gitlint..................................................................Passed 14:45:36 sims: OK ✔ in 12.09 seconds 14:45:36 pre-commit: OK ✔ in 44.57 seconds 14:45:36 testsPCE: freeze> python -m pip freeze --all 14:45:37 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.64.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.3,matplotlib==3.11.1,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 14:45:37 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce 14:45:37 pytest -q transportpce_tests/pce/test01_pce.py 14:47:37 EEEEEEEEEEEEEEEEEEEE [100%] 14:47:41 ==================================== ERRORS ==================================== 14:47:41 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 14:47:41 14:47:41 cls = 14:47:41 14:47:41 @classmethod 14:47:41 def setUpClass(cls): 14:47:41 # pylint: disable=bare-except 14:47:41 sample_files_parsed = False 14:47:41 time.sleep(20) 14:47:41 try: 14:47:41 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:41 "..", "..", "sample_configs", "honeynode-topo.json") 14:47:41 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 14:47:41 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 14:47:41 14:47:41 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:41 "..", "..", "sample_configs", "NW-simple-topology.json") 14:47:41 14:47:41 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 14:47:41 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 14:47:41 14:47:41 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:41 "..", "..", "sample_configs", "NW-for-test-5-4.json") 14:47:41 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 14:47:41 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 14:47:41 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:47:41 "..", "..", "sample_configs", "pce_portmapping_121.json") 14:47:41 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 14:47:41 cls.port_mapping_data = port_mapping.read() 14:47:41 sample_files_parsed = True 14:47:41 except PermissionError as err: 14:47:41 print("Permission Error when trying to read sample files\n", err) 14:47:41 sys.exit(2) 14:47:41 except FileNotFoundError as err: 14:47:41 print("File Not found Error when trying to read sample files\n", err) 14:47:41 sys.exit(2) 14:47:41 except: 14:47:41 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 14:47:41 sys.exit(2) 14:47:41 finally: 14:47:41 if sample_files_parsed: 14:47:41 print("sample files content loaded") 14:47:41 14:47:41 > cls.processes = test_utils.start_tpce() 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 14:47:41 transportpce_tests/pce/test01_pce.py:93: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 def start_tpce(): 14:47:41 if 'NO_ODL_STARTUP' in os.environ: 14:47:41 print('No OpenDaylight instance to start!') 14:47:41 return [] 14:47:41 print('starting OpenDaylight...') 14:47:41 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:47:41 process = start_lighty() 14:47:41 else: 14:47:41 process = start_karaf() 14:47:41 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:47:41 print('OpenDaylight started !') 14:47:41 else: 14:47:41 print('OpenDaylight failed to start !') 14:47:41 shutdown_process(process) 14:47:41 for pid in process_list: 14:47:41 shutdown_process(pid) 14:47:41 > sys.exit(1) 14:47:41 E SystemExit: 1 14:47:41 14:47:41 transportpce_tests/common/test_utils.py:232: SystemExit 14:47:41 ---------------------------- Captured stdout setup ----------------------------- 14:47:41 sample files content loaded 14:47:41 starting OpenDaylight... 14:47:41 starting KARAF (karaf) TransportPCE build... 14:47:41 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:47:41 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24abf2e0> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acf4c0> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24a8ff60> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24abf2e0> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a26f29120> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24abf2e0> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acdd00> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acfa60> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24a8ff60> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acfb00> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acf380> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24a8ff60> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acefc0> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acdda0> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acfd80> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acfb00> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24a8fe20> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24a8fce0> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 14:47:41 14:47:41 cls = 14:47:41 func = . at 0x7f9a24acfc40> 14:47:41 when = 'setup' 14:47:41 reraise = (, ) 14:47:41 14:47:41 @classmethod 14:47:41 def from_call( 14:47:41 cls, 14:47:41 func: Callable[[], TResult], 14:47:41 when: Literal["collect", "setup", "call", "teardown"], 14:47:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:47:41 ) -> CallInfo[TResult]: 14:47:41 """Call func, wrapping the result in a CallInfo. 14:47:41 14:47:41 :param func: 14:47:41 The function to call. Called without arguments. 14:47:41 :type func: Callable[[], _pytest.runner.TResult] 14:47:41 :param when: 14:47:41 The phase in which the function is called. 14:47:41 :param reraise: 14:47:41 Exception or exceptions that shall propagate if raised by the 14:47:41 function, instead of being wrapped in the CallInfo. 14:47:41 """ 14:47:41 excinfo = None 14:47:41 instant = timing.Instant() 14:47:41 try: 14:47:41 > result: TResult | None = func() 14:47:41 ^^^^^^ 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:47:41 lambda: runtest_hook(item=item, **kwds), 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:47:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:47:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:47:41 yield 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:47:41 return (yield) 14:47:41 ^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:47:41 item.session._setupstate.setup(item) 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:47:41 col.setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:47:41 super().setup() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:47:41 self._request._fillfixtures() 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:47:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:47:41 fixturedef = self._get_active_fixturedef(argname) 14:47:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:47:41 fixturedef.execute(request=subrequest) 14:47:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:47:41 14:47:41 self = 14:47:41 request = > 14:47:41 14:47:41 def execute(self, request: SubRequest) -> FixtureValue: 14:47:41 """Return the value of this fixture, executing it if not cached.""" 14:47:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:47:41 # This needs to be done before checking if we have a cached value, since 14:47:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:47:41 # parametrization, they finalize themselves and fixtures depending on it 14:47:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:47:41 # See #4871 14:47:41 requested_fixtures_that_should_finalize_us = [] 14:47:41 for argname in self.argnames: 14:47:41 fixturedef = request._get_active_fixturedef(argname) 14:47:41 # Saves requested fixtures in a list so we later can add our finalizer 14:47:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:47:41 # down first. This is generally handled by SetupState, but still currently 14:47:41 # needed when this fixture is not parametrized but depends on a parametrized 14:47:41 # fixture. 14:47:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:47:41 14:47:41 # Check for (and return) cached value/exception. 14:47:41 if self.cached_result is not None: 14:47:41 request_cache_key = self.cache_key(request) 14:47:41 cache_key = self.cached_result[1] 14:47:41 try: 14:47:41 # Attempt to make a normal == check: this might fail for objects 14:47:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:47:41 cache_hit = bool(request_cache_key == cache_key) 14:47:41 except (ValueError, RuntimeError): 14:47:41 # If the comparison raises, use 'is' as fallback. 14:47:41 cache_hit = request_cache_key is cache_key 14:47:41 14:47:41 if cache_hit: 14:47:41 if self.cached_result[2] is not None: 14:47:41 exc, exc_tb = self.cached_result[2] 14:47:41 raise exc.with_traceback(exc_tb) 14:47:41 else: 14:47:41 return self.cached_result[0] 14:47:41 # We have a previous but differently parametrized fixture instance 14:47:41 # so we need to tear it down before creating a new one. 14:47:41 self.finish(request) 14:47:41 assert self.cached_result is None 14:47:41 14:47:41 # Add finalizer to requested fixtures we saved previously. 14:47:41 # We make sure to do this after checking for cached value to avoid 14:47:41 # adding our finalizer multiple times. (#12135) 14:47:41 finalizer = functools.partial(self.finish, request=request) 14:47:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:47:41 parent_fixture.addfinalizer(finalizer) 14:47:41 14:47:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:47:41 # which is executed last. 14:47:41 > assert not self._finalizers 14:47:41 ^^^^^^^^^^^^^^^^^^^^ 14:47:41 E AssertionError 14:47:41 14:47:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:47:41 =========================== short test summary info ============================ 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 14:47:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 14:47:41 20 errors in 123.88s (0:02:03) 14:47:41 testsPCE: exit 1 (124.16 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce pid=3519 14:47:41 testsPCE: FAIL ✖ in 3 minutes 8.39 seconds 14:47:41 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:41 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:41 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:47:48 tests121: freeze> python -m pip freeze --all 14:47:48 tests_tapi: freeze> python -m pip freeze --all 14:47:48 tests190: 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 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: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:49:29 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 0x7f4606850fe0> 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 0x7f46068736a0> 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 0x7f4606f5f240> 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 0x7f4608002fc0> 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 0x7f46068713a0> 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 0x7f4606851120> 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 0x7f4608f58400> 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 0x7f4606f5f240> 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 0x7f4606851120> 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:31 def execute(self, request: SubRequest) -> FixtureValue: 14:49:31 """Return the value of this fixture, executing it if not cached.""" 14:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:31 # This needs to be done before checking if we have a cached value, since 14:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:31 # parametrization, they finalize themselves and fixtures depending on it 14:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:31 # See #4871 14:49:31 requested_fixtures_that_should_finalize_us = [] 14:49:31 for argname in self.argnames: 14:49:31 fixturedef = request._get_active_fixturedef(argname) 14:49:31 # Saves requested fixtures in a list so we later can add our finalizer 14:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:31 # down first. This is generally handled by SetupState, but still currently 14:49:31 # needed when this fixture is not parametrized but depends on a parametrized 14:49:31 # fixture. 14:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:31 14:49:31 # Check for (and return) cached value/exception. 14:49:31 if self.cached_result is not None: 14:49:31 request_cache_key = self.cache_key(request) 14:49:31 cache_key = self.cached_result[1] 14:49:31 try: 14:49:31 # Attempt to make a normal == check: this might fail for objects 14:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:31 cache_hit = bool(request_cache_key == cache_key) 14:49:31 except (ValueError, RuntimeError): 14:49:31 # If the comparison raises, use 'is' as fallback. 14:49:31 cache_hit = request_cache_key is cache_key 14:49:31 14:49:31 if cache_hit: 14:49:31 if self.cached_result[2] is not None: 14:49:31 exc, exc_tb = self.cached_result[2] 14:49:31 raise exc.with_traceback(exc_tb) 14:49:31 else: 14:49:31 return self.cached_result[0] 14:49:31 # We have a previous but differently parametrized fixture instance 14:49:31 # so we need to tear it down before creating a new one. 14:49:31 self.finish(request) 14:49:31 assert self.cached_result is None 14:49:31 14:49:31 # Add finalizer to requested fixtures we saved previously. 14:49:31 # We make sure to do this after checking for cached value to avoid 14:49:31 # adding our finalizer multiple times. (#12135) 14:49:31 finalizer = functools.partial(self.finish, request=request) 14:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:31 parent_fixture.addfinalizer(finalizer) 14:49:31 14:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:31 # which is executed last. 14:49:31 > assert not self._finalizers 14:49:31 ^^^^^^^^^^^^^^^^^^^^ 14:49:31 E AssertionError 14:49:31 14:49:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:31 =========================== short test summary info ============================ 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 14:49:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:49:31 10 errors in 101.99s (0:01:41) 14:49:31 EEtests190: exit 1 (102.27 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc pid=4289 14:49:31 tests190: FAIL ✖ in 1 minute 49.75 seconds 14:49:31 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:31 EEEEEEEEEEEEEEEEEEEE [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 0x7f37ecf15760> 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 0x7f37ecf47560> 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 0x7f37f009f740> 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 0x7f37ee6df560> 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 0x7f37ecf153a0> 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 0x7f37ecf15580> 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 0x7f37ecf47600> 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 0x7f37ecf468e0> 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 0x7f37ecf46de0> 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 0x7f37ecf47600> 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:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf46f20> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf15580> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf46de0> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf46f20> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf15800> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf15bc0> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf15da0> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf46840> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecb19d00> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 14:49:33 14:49:33 cls = 14:49:33 func = . at 0x7f37ecf15bc0> 14:49:33 when = 'setup' 14:49:33 reraise = (, ) 14:49:33 14:49:33 @classmethod 14:49:33 def from_call( 14:49:33 cls, 14:49:33 func: Callable[[], TResult], 14:49:33 when: Literal["collect", "setup", "call", "teardown"], 14:49:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:33 ) -> CallInfo[TResult]: 14:49:33 """Call func, wrapping the result in a CallInfo. 14:49:33 14:49:33 :param func: 14:49:33 The function to call. Called without arguments. 14:49:33 :type func: Callable[[], _pytest.runner.TResult] 14:49:33 :param when: 14:49:33 The phase in which the function is called. 14:49:33 :param reraise: 14:49:33 Exception or exceptions that shall propagate if raised by the 14:49:33 function, instead of being wrapped in the CallInfo. 14:49:33 """ 14:49:33 excinfo = None 14:49:33 instant = timing.Instant() 14:49:33 try: 14:49:33 > result: TResult | None = func() 14:49:33 ^^^^^^ 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:33 lambda: runtest_hook(item=item, **kwds), 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:33 yield 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:33 return (yield) 14:49:33 ^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:33 item.session._setupstate.setup(item) 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:33 col.setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:33 super().setup() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:33 self._request._fillfixtures() 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:33 fixturedef = self._get_active_fixturedef(argname) 14:49:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:33 fixturedef.execute(request=subrequest) 14:49:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:33 14:49:33 self = 14:49:33 request = > 14:49:33 14:49:33 def execute(self, request: SubRequest) -> FixtureValue: 14:49:33 """Return the value of this fixture, executing it if not cached.""" 14:49:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:33 # This needs to be done before checking if we have a cached value, since 14:49:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:33 # parametrization, they finalize themselves and fixtures depending on it 14:49:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:33 # See #4871 14:49:33 requested_fixtures_that_should_finalize_us = [] 14:49:33 for argname in self.argnames: 14:49:33 fixturedef = request._get_active_fixturedef(argname) 14:49:33 # Saves requested fixtures in a list so we later can add our finalizer 14:49:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:33 # down first. This is generally handled by SetupState, but still currently 14:49:33 # needed when this fixture is not parametrized but depends on a parametrized 14:49:33 # fixture. 14:49:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:33 14:49:33 # Check for (and return) cached value/exception. 14:49:33 if self.cached_result is not None: 14:49:33 request_cache_key = self.cache_key(request) 14:49:33 cache_key = self.cached_result[1] 14:49:33 try: 14:49:33 # Attempt to make a normal == check: this might fail for objects 14:49:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:33 cache_hit = bool(request_cache_key == cache_key) 14:49:33 except (ValueError, RuntimeError): 14:49:33 # If the comparison raises, use 'is' as fallback. 14:49:33 cache_hit = request_cache_key is cache_key 14:49:33 14:49:33 if cache_hit: 14:49:33 if self.cached_result[2] is not None: 14:49:33 exc, exc_tb = self.cached_result[2] 14:49:33 raise exc.with_traceback(exc_tb) 14:49:33 else: 14:49:33 return self.cached_result[0] 14:49:33 # We have a previous but differently parametrized fixture instance 14:49:33 # so we need to tear it down before creating a new one. 14:49:33 self.finish(request) 14:49:33 assert self.cached_result is None 14:49:33 14:49:33 # Add finalizer to requested fixtures we saved previously. 14:49:33 # We make sure to do this after checking for cached value to avoid 14:49:33 # adding our finalizer multiple times. (#12135) 14:49:33 finalizer = functools.partial(self.finish, request=request) 14:49:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:33 parent_fixture.addfinalizer(finalizer) 14:49:33 14:49:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:33 # which is executed last. 14:49:33 > assert not self._finalizers 14:49:33 ^^^^^^^^^^^^^^^^^^^^ 14:49:33 E AssertionError 14:49:33 14:49:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:33 =========================== short test summary info ============================ 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 14:49:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 14:49:33 21 errors in 104.13s (0:01:44) 14:49:33 Etests121: exit 1 (104.43 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 pid=4267 14:49:33 EEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 51.8 seconds 14:49:37 tests71: freeze> python -m pip freeze --all 14:49:37 EEtests71: 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 EEEEEEE [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 0x7fae357a5bc0> 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 0x7fae357ef4c0> 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 0x7fae36f6f380> 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 0x7fae37ea7740> 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 0x7fae357ef560> 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 0x7fae37e591c0> 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 0x7fae357ee700> 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 0x7fae357ef880> 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 0x7fae357a5bc0> 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 0x7fae37e591c0> 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 0x7fae357ee700> 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 0x7fae37e591c0> 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 0x7fae357a5bc0> 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 0x7fae357ee700> 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 0x7fae37e591c0> 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 0x7fae357eee80> 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 0x7fae357ee660> 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 0x7fae37e591c0> 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 0x7fae357eed40> 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 0x7fae37e591c0> 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 0x7fae357ee660> 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 0x7fae3557da80> 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 0x7fae357a4e00> 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 0x7fae37e591c0> 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 0x7fae3557dc60> 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 0x7fae37e591c0> 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 0x7fae357a4e00> 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 0x7fae3557df80> 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 0x7fae357ee700> 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:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae37e591c0> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557d260> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae357ee700> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557d3a0> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557d120> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae357ee700> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557e480> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae357ee700> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557c900> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557ea20> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae357ee700> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557c720> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557cea0> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae357ee700> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557da80> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557d260> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae357ee700> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557e020> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557d4e0> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae357ee700> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 14:49:39 14:49:39 cls = 14:49:39 func = . at 0x7fae3557f560> 14:49:39 when = 'setup' 14:49:39 reraise = (, ) 14:49:39 14:49:39 @classmethod 14:49:39 def from_call( 14:49:39 cls, 14:49:39 func: Callable[[], TResult], 14:49:39 when: Literal["collect", "setup", "call", "teardown"], 14:49:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:49:39 ) -> CallInfo[TResult]: 14:49:39 """Call func, wrapping the result in a CallInfo. 14:49:39 14:49:39 :param func: 14:49:39 The function to call. Called without arguments. 14:49:39 :type func: Callable[[], _pytest.runner.TResult] 14:49:39 :param when: 14:49:39 The phase in which the function is called. 14:49:39 :param reraise: 14:49:39 Exception or exceptions that shall propagate if raised by the 14:49:39 function, instead of being wrapped in the CallInfo. 14:49:39 """ 14:49:39 excinfo = None 14:49:39 instant = timing.Instant() 14:49:39 try: 14:49:39 > result: TResult | None = func() 14:49:39 ^^^^^^ 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:49:39 lambda: runtest_hook(item=item, **kwds), 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:49:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:49:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:49:39 yield 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:49:39 return (yield) 14:49:39 ^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:49:39 item.session._setupstate.setup(item) 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:49:39 col.setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:49:39 super().setup() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:49:39 self._request._fillfixtures() 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:49:39 item.funcargs[argname] = self.getfixturevalue(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:49:39 fixturedef = self._get_active_fixturedef(argname) 14:49:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:49:39 fixturedef.execute(request=subrequest) 14:49:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:49:39 14:49:39 self = 14:49:39 request = > 14:49:39 14:49:39 def execute(self, request: SubRequest) -> FixtureValue: 14:49:39 """Return the value of this fixture, executing it if not cached.""" 14:49:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:49:39 # This needs to be done before checking if we have a cached value, since 14:49:39 # if a dependent fixture has their cache invalidated, e.g. due to 14:49:39 # parametrization, they finalize themselves and fixtures depending on it 14:49:39 # (which will likely include this fixture) setting `self.cached_result = None`. 14:49:39 # See #4871 14:49:39 requested_fixtures_that_should_finalize_us = [] 14:49:39 for argname in self.argnames: 14:49:39 fixturedef = request._get_active_fixturedef(argname) 14:49:39 # Saves requested fixtures in a list so we later can add our finalizer 14:49:39 # to them, ensuring that if a requested fixture gets torn down we get torn 14:49:39 # down first. This is generally handled by SetupState, but still currently 14:49:39 # needed when this fixture is not parametrized but depends on a parametrized 14:49:39 # fixture. 14:49:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:49:39 14:49:39 # Check for (and return) cached value/exception. 14:49:39 if self.cached_result is not None: 14:49:39 request_cache_key = self.cache_key(request) 14:49:39 cache_key = self.cached_result[1] 14:49:39 try: 14:49:39 # Attempt to make a normal == check: this might fail for objects 14:49:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:49:39 cache_hit = bool(request_cache_key == cache_key) 14:49:39 except (ValueError, RuntimeError): 14:49:39 # If the comparison raises, use 'is' as fallback. 14:49:39 cache_hit = request_cache_key is cache_key 14:49:39 14:49:39 if cache_hit: 14:49:39 if self.cached_result[2] is not None: 14:49:39 exc, exc_tb = self.cached_result[2] 14:49:39 raise exc.with_traceback(exc_tb) 14:49:39 else: 14:49:39 return self.cached_result[0] 14:49:39 # We have a previous but differently parametrized fixture instance 14:49:39 # so we need to tear it down before creating a new one. 14:49:39 self.finish(request) 14:49:39 assert self.cached_result is None 14:49:39 14:49:39 # Add finalizer to requested fixtures we saved previously. 14:49:39 # We make sure to do this after checking for cached value to avoid 14:49:39 # adding our finalizer multiple times. (#12135) 14:49:39 finalizer = functools.partial(self.finish, request=request) 14:49:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:49:39 parent_fixture.addfinalizer(finalizer) 14:49:39 14:49:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:49:39 # which is executed last. 14:49:39 > assert not self._finalizers 14:49:39 ^^^^^^^^^^^^^^^^^^^^ 14:49:39 E AssertionError 14:49:39 14:49:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:49:39 =========================== short test summary info ============================ 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 14:49:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 14:49:39 51 errors in 110.15s (0:01:50) 14:49:39 tests_tapi: exit 1 (110.43 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi pid=4278 14:49:39 tests_tapi: FAIL ✖ in 1 minute 57.82 seconds 14:49:39 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:45 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:18 EEEEEEEEEEEE [100%] 14:51:20 ==================================== ERRORS ==================================== 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 14:51:20 14:51:20 cls = 14:51:20 14:51:20 @classmethod 14:51:20 def setUpClass(cls): 14:51:20 > cls.processes = test_utils.start_tpce() 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 14:51:20 transportpce_tests/7.1/test01_portmapping.py:32: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 def start_tpce(): 14:51:20 if 'NO_ODL_STARTUP' in os.environ: 14:51:20 print('No OpenDaylight instance to start!') 14:51:20 return [] 14:51:20 print('starting OpenDaylight...') 14:51:20 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:51:20 process = start_lighty() 14:51:20 else: 14:51:20 process = start_karaf() 14:51:20 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:51:20 print('OpenDaylight started !') 14:51:20 else: 14:51:20 print('OpenDaylight failed to start !') 14:51:20 shutdown_process(process) 14:51:20 for pid in process_list: 14:51:20 shutdown_process(pid) 14:51:20 > sys.exit(1) 14:51:20 E SystemExit: 1 14:51:20 14:51:20 transportpce_tests/common/test_utils.py:232: SystemExit 14:51:20 ---------------------------- Captured stdout setup ----------------------------- 14:51:20 starting OpenDaylight... 14:51:20 starting KARAF (karaf71) TransportPCE build... 14:51:20 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f562700> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f587740> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf11c7cea0> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f562700> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf10d33e20> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f562700> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f587600> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f585d00> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f587920> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f5877e0> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 14:51:20 14:51:20 cls = 14:51:20 func = . at 0x7fcf0f562700> 14:51:20 when = 'setup' 14:51:20 reraise = (, ) 14:51:20 14:51:20 @classmethod 14:51:20 def from_call( 14:51:20 cls, 14:51:20 func: Callable[[], TResult], 14:51:20 when: Literal["collect", "setup", "call", "teardown"], 14:51:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:51:20 ) -> CallInfo[TResult]: 14:51:20 """Call func, wrapping the result in a CallInfo. 14:51:20 14:51:20 :param func: 14:51:20 The function to call. Called without arguments. 14:51:20 :type func: Callable[[], _pytest.runner.TResult] 14:51:20 :param when: 14:51:20 The phase in which the function is called. 14:51:20 :param reraise: 14:51:20 Exception or exceptions that shall propagate if raised by the 14:51:20 function, instead of being wrapped in the CallInfo. 14:51:20 """ 14:51:20 excinfo = None 14:51:20 instant = timing.Instant() 14:51:20 try: 14:51:20 > result: TResult | None = func() 14:51:20 ^^^^^^ 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:51:20 lambda: runtest_hook(item=item, **kwds), 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:51:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:51:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:51:20 yield 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:51:20 return (yield) 14:51:20 ^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:51:20 item.session._setupstate.setup(item) 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:51:20 col.setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:51:20 super().setup() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:51:20 self._request._fillfixtures() 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:51:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:51:20 fixturedef = self._get_active_fixturedef(argname) 14:51:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:51:20 fixturedef.execute(request=subrequest) 14:51:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:51:20 14:51:20 self = 14:51:20 request = > 14:51:20 14:51:20 def execute(self, request: SubRequest) -> FixtureValue: 14:51:20 """Return the value of this fixture, executing it if not cached.""" 14:51:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:51:20 # This needs to be done before checking if we have a cached value, since 14:51:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:51:20 # parametrization, they finalize themselves and fixtures depending on it 14:51:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:51:20 # See #4871 14:51:20 requested_fixtures_that_should_finalize_us = [] 14:51:20 for argname in self.argnames: 14:51:20 fixturedef = request._get_active_fixturedef(argname) 14:51:20 # Saves requested fixtures in a list so we later can add our finalizer 14:51:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:51:20 # down first. This is generally handled by SetupState, but still currently 14:51:20 # needed when this fixture is not parametrized but depends on a parametrized 14:51:20 # fixture. 14:51:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:51:20 14:51:20 # Check for (and return) cached value/exception. 14:51:20 if self.cached_result is not None: 14:51:20 request_cache_key = self.cache_key(request) 14:51:20 cache_key = self.cached_result[1] 14:51:20 try: 14:51:20 # Attempt to make a normal == check: this might fail for objects 14:51:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:51:20 cache_hit = bool(request_cache_key == cache_key) 14:51:20 except (ValueError, RuntimeError): 14:51:20 # If the comparison raises, use 'is' as fallback. 14:51:20 cache_hit = request_cache_key is cache_key 14:51:20 14:51:20 if cache_hit: 14:51:20 if self.cached_result[2] is not None: 14:51:20 exc, exc_tb = self.cached_result[2] 14:51:20 raise exc.with_traceback(exc_tb) 14:51:20 else: 14:51:20 return self.cached_result[0] 14:51:20 # We have a previous but differently parametrized fixture instance 14:51:20 # so we need to tear it down before creating a new one. 14:51:20 self.finish(request) 14:51:20 assert self.cached_result is None 14:51:20 14:51:20 # Add finalizer to requested fixtures we saved previously. 14:51:20 # We make sure to do this after checking for cached value to avoid 14:51:20 # adding our finalizer multiple times. (#12135) 14:51:20 finalizer = functools.partial(self.finish, request=request) 14:51:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:51:20 parent_fixture.addfinalizer(finalizer) 14:51:20 14:51:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:51:20 # which is executed last. 14:51:20 > assert not self._finalizers 14:51:20 ^^^^^^^^^^^^^^^^^^^^ 14:51:20 E AssertionError 14:51:20 14:51:20 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:51:20 =========================== short test summary info ============================ 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 14:51:20 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 14:51:20 12 errors in 102.41s (0:01:42) 14:51:20 tests71: exit 1 (102.71 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 pid=4425 14:51:26 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 0x7f6f126bf560> 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 0x7f6f12703ec0> 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 0x7f6f13e86a20> 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 0x7f6f14dcc4a0> 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 0x7f6f1275eca0> 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 0x7f6f12703ec0> 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 0x7f6f13e86a20> 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 0x7f6f1275ccc0> 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 0x7f6f126bf6a0> 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 0x7f6f12703ec0> 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 0x7f6f1275c360> 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 0x7f6f126bf6a0> 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 0x7f6f1275f9c0> 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 0x7f6f1275f880> 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 0x7f6f126be340> 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 0x7f6f126be020> 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 0x7f6f126be340> 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 0x7f6f126be020> 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 0x7f6f1275fb00> 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 0x7f6f126be340> 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 0x7f6f1275cb80> 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 0x7f6f1275fc40> 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 0x7f6f126be340> 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 0x7f6f1275f880> 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 0x7f6f1275c360> 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 0x7f6f126be340> 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 0x7f6f1275f1a0> 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 0x7f6f1275f100> 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 0x7f6f126be340> 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 0x7f6f1275e5c0> 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 0x7f6f1275eca0> 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 0x7f6f126be340> 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 0x7f6f1275f740> 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 0x7f6f126be340> 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.70s (0:01:46) 14:51:32 tests71: FAIL ✖ in 1 minute 49.42 seconds 14:51:32 tests221: exit 1 (107.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 pid=4502 14:51:33 tests221: FAIL ✖ in 1 minute 53.75 seconds 14:51:33 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:41 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:32 ==================================== ERRORS ==================================== 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 14:53:32 14:53:32 cls = 14:53:32 14:53:32 @classmethod 14:53:32 def setUpClass(cls): 14:53:32 > cls.processes = test_utils.start_tpce() 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 14:53:32 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 def start_tpce(): 14:53:32 if 'NO_ODL_STARTUP' in os.environ: 14:53:32 print('No OpenDaylight instance to start!') 14:53:32 return [] 14:53:32 print('starting OpenDaylight...') 14:53:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:53:32 process = start_lighty() 14:53:32 else: 14:53:32 process = start_karaf() 14:53:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:53:32 print('OpenDaylight started !') 14:53:32 else: 14:53:32 print('OpenDaylight failed to start !') 14:53:32 shutdown_process(process) 14:53:32 for pid in process_list: 14:53:32 shutdown_process(pid) 14:53:32 > sys.exit(1) 14:53:32 E SystemExit: 1 14:53:32 14:53:32 transportpce_tests/common/test_utils.py:232: SystemExit 14:53:32 ---------------------------- Captured stdout setup ----------------------------- 14:53:32 starting OpenDaylight... 14:53:32 starting KARAF (karaf221) TransportPCE build... 14:53:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973afe3e0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5aac0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff97527a7a0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973affba0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973afff60> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973affba0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5a3e0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc360> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff9761c18a0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973afff60> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b420> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc040> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff9761c18a0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b880> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff9761c18a0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc220> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b880> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff9761c18a0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc220> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc220> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b58040> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b58040> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5a660> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5ade0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5aca0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5bd80> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b6a0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5bc40> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b600> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b740> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5bd80> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5aca0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b58040> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b740> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5b880> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5a660> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5ab60> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5ade0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973abc400> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 14:53:32 14:53:32 cls = 14:53:32 func = . at 0x7ff973b5a3e0> 14:53:32 when = 'setup' 14:53:32 reraise = (, ) 14:53:32 14:53:32 @classmethod 14:53:32 def from_call( 14:53:32 cls, 14:53:32 func: Callable[[], TResult], 14:53:32 when: Literal["collect", "setup", "call", "teardown"], 14:53:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:53:32 ) -> CallInfo[TResult]: 14:53:32 """Call func, wrapping the result in a CallInfo. 14:53:32 14:53:32 :param func: 14:53:32 The function to call. Called without arguments. 14:53:32 :type func: Callable[[], _pytest.runner.TResult] 14:53:32 :param when: 14:53:32 The phase in which the function is called. 14:53:32 :param reraise: 14:53:32 Exception or exceptions that shall propagate if raised by the 14:53:32 function, instead of being wrapped in the CallInfo. 14:53:32 """ 14:53:32 excinfo = None 14:53:32 instant = timing.Instant() 14:53:32 try: 14:53:32 > result: TResult | None = func() 14:53:32 ^^^^^^ 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:53:32 lambda: runtest_hook(item=item, **kwds), 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:53:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:53:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:53:32 yield 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:53:32 return (yield) 14:53:32 ^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:53:32 item.session._setupstate.setup(item) 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:53:32 col.setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:53:32 super().setup() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:53:32 self._request._fillfixtures() 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:53:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:53:32 fixturedef = self._get_active_fixturedef(argname) 14:53:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:53:32 fixturedef.execute(request=subrequest) 14:53:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:53:32 14:53:32 self = 14:53:32 request = > 14:53:32 14:53:32 def execute(self, request: SubRequest) -> FixtureValue: 14:53:32 """Return the value of this fixture, executing it if not cached.""" 14:53:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:53:32 # This needs to be done before checking if we have a cached value, since 14:53:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:53:32 # parametrization, they finalize themselves and fixtures depending on it 14:53:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:53:32 # See #4871 14:53:32 requested_fixtures_that_should_finalize_us = [] 14:53:32 for argname in self.argnames: 14:53:32 fixturedef = request._get_active_fixturedef(argname) 14:53:32 # Saves requested fixtures in a list so we later can add our finalizer 14:53:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:53:32 # down first. This is generally handled by SetupState, but still currently 14:53:32 # needed when this fixture is not parametrized but depends on a parametrized 14:53:32 # fixture. 14:53:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:53:32 14:53:32 # Check for (and return) cached value/exception. 14:53:32 if self.cached_result is not None: 14:53:32 request_cache_key = self.cache_key(request) 14:53:32 cache_key = self.cached_result[1] 14:53:32 try: 14:53:32 # Attempt to make a normal == check: this might fail for objects 14:53:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:53:32 cache_hit = bool(request_cache_key == cache_key) 14:53:32 except (ValueError, RuntimeError): 14:53:32 # If the comparison raises, use 'is' as fallback. 14:53:32 cache_hit = request_cache_key is cache_key 14:53:32 14:53:32 if cache_hit: 14:53:32 if self.cached_result[2] is not None: 14:53:32 exc, exc_tb = self.cached_result[2] 14:53:32 raise exc.with_traceback(exc_tb) 14:53:32 else: 14:53:32 return self.cached_result[0] 14:53:32 # We have a previous but differently parametrized fixture instance 14:53:32 # so we need to tear it down before creating a new one. 14:53:32 self.finish(request) 14:53:32 assert self.cached_result is None 14:53:32 14:53:32 # Add finalizer to requested fixtures we saved previously. 14:53:32 # We make sure to do this after checking for cached value to avoid 14:53:32 # adding our finalizer multiple times. (#12135) 14:53:32 finalizer = functools.partial(self.finish, request=request) 14:53:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:53:32 parent_fixture.addfinalizer(finalizer) 14:53:32 14:53:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:53:32 # which is executed last. 14:53:32 > assert not self._finalizers 14:53:32 ^^^^^^^^^^^^^^^^^^^^ 14:53:32 E AssertionError 14:53:32 14:53:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:53:32 =========================== short test summary info ============================ 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 14:53:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 14:53:32 51 errors in 110.17s (0:01:50) 14:53:32 tests_hybrid: exit 1 (110.47 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid pid=4627 14:53:32 buildcontroller: FAIL code 127 (9.60=setup[8.75]+cmd[0.85] seconds) 14:53:32 sims: OK (12.09=setup[8.53]+cmd[3.56] seconds) 14:53:32 build_karaf_tests121: FAIL code 127 (8.56=setup[8.55]+cmd[0.00] seconds) 14:53:32 testsPCE: FAIL code 1 (188.39=setup[64.22]+cmd[124.16] seconds) 14:53:32 tests121: FAIL code 1 (111.80=setup[7.37]+cmd[104.43] seconds) 14:53:32 build_karaf_tests221: FAIL code 127 (7.71=setup[7.70]+cmd[0.00] seconds) 14:53:32 tests_tapi: FAIL code 1 (117.82=setup[7.39]+cmd[110.43] seconds) 14:53:32 tests221: FAIL code 1 (113.75=setup[6.75]+cmd[107.00] seconds) 14:53:32 build_karaf_tests71: FAIL code 127 (7.37=setup[7.35]+cmd[0.01] seconds) 14:53:32 tests71: FAIL code 1 (109.42=setup[6.70]+cmd[102.71] seconds) 14:53:32 build_karaf_tests190: FAIL code 127 (8.01=setup[8.01]+cmd[0.00] seconds) 14:53:32 tests190: FAIL code 1 (109.75=setup[7.48]+cmd[102.27] seconds) 14:53:32 tests_hybrid: FAIL code 1 (119.86=setup[9.39]+cmd[110.47] seconds) 14:53:32 buildlighty: FAIL code 9 (8.79=setup[8.77]+cmd[0.02] seconds) 14:53:32 docs: OK (19.37=setup[17.10]+cmd[2.27] seconds) 14:53:32 docs-linkcheck: OK (21.60=setup[16.69]+cmd[4.91] seconds) 14:53:32 checkbashisms: OK (3.14=setup[1.91]+cmd[0.01,0.04,1.18] seconds) 14:53:32 pre-commit: OK (44.57=setup[3.52]+cmd[0.00,0.00,33.49,7.55] seconds) 14:53:32 pylint: OK (24.16=setup[3.64]+cmd[20.53] seconds) 14:53:32 evaluation failed :( (577.18 seconds) 14:53:32 + tox_status=1 14:53:32 + echo '---> Completed tox runs' 14:53:32 ---> Completed tox runs 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/build_karaf_tests121/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=build_karaf_tests121 14:53:32 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests121 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/build_karaf_tests190/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=build_karaf_tests190 14:53:32 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests190 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/build_karaf_tests221/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=build_karaf_tests221 14:53:32 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests221 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/build_karaf_tests71/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=build_karaf_tests71 14:53:32 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests71 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/buildcontroller/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=buildcontroller 14:53:32 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildcontroller 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/buildlighty/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=buildlighty 14:53:32 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildlighty 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/checkbashisms/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=checkbashisms 14:53:32 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/checkbashisms 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/docs-linkcheck/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=docs-linkcheck 14:53:32 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs-linkcheck 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/docs/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=docs 14:53:32 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/pre-commit/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=pre-commit 14:53:32 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pre-commit 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/pylint/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=pylint 14:53:32 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pylint 14:53:32 + for i in .tox/*/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 ++ echo .tox/sims/log 14:53:32 + tox_env=sims 14:53:32 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/sims 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/tests121/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=tests121 14:53:32 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests121 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/tests190/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=tests190 14:53:32 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests190 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/tests221/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=tests221 14:53:32 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests221 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/tests71/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=tests71 14:53:32 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests71 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/testsPCE/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=testsPCE 14:53:32 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/testsPCE 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/tests_hybrid/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=tests_hybrid 14:53:32 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_hybrid 14:53:32 + for i in .tox/*/log 14:53:32 ++ echo .tox/tests_tapi/log 14:53:32 ++ awk -F/ '{print $2}' 14:53:32 + tox_env=tests_tapi 14:53:32 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_tapi 14:53:32 + DOC_DIR=docs/_build/html 14:53:32 + [[ -d docs/_build/html ]] 14:53:32 + echo '---> Archiving generated docs' 14:53:32 ---> Archiving generated docs 14:53:32 + mv docs/_build/html /w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:53:32 + echo '---> tox-run.sh ends' 14:53:32 ---> tox-run.sh ends 14:53:32 + test 1 -eq 0 14:53:32 + exit 1 14:53:32 ++ '[' 1 = 1 ']' 14:53:32 ++ '[' -x /usr/bin/clear_console ']' 14:53:32 ++ /usr/bin/clear_console -q 14:53:32 Build step 'Execute shell' marked build as failure 14:53:33 $ ssh-agent -k 14:53:33 unset SSH_AUTH_SOCK; 14:53:33 unset SSH_AGENT_PID; 14:53:33 echo Agent pid 1564 killed; 14:53:33 [ssh-agent] Stopped. 14:53:33 [PostBuildScript] - [INFO] Executing post build scripts. 14:53:33 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins3400638369255475261.sh 14:53:33 ---> sysstat.sh 14:53:33 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins8030855403518209485.sh 14:53:33 ---> package-listing.sh 14:53:33 ++ facter osfamily 14:53:33 ++ tr '[:upper:]' '[:lower:]' 14:53:34 + OS_FAMILY=debian 14:53:34 + workspace=/w/workspace/transportpce-tox-verify-vanadium 14:53:34 + START_PACKAGES=/tmp/packages_start.txt 14:53:34 + END_PACKAGES=/tmp/packages_end.txt 14:53:34 + DIFF_PACKAGES=/tmp/packages_diff.txt 14:53:34 + PACKAGES=/tmp/packages_start.txt 14:53:34 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:53:34 + PACKAGES=/tmp/packages_end.txt 14:53:34 + case "${OS_FAMILY}" in 14:53:34 + dpkg -l 14:53:34 + grep '^ii' 14:53:34 + '[' -f /tmp/packages_start.txt ']' 14:53:34 + '[' -f /tmp/packages_end.txt ']' 14:53:34 + diff /tmp/packages_start.txt /tmp/packages_end.txt 14:53:34 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:53:34 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:53:34 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:53:34 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins12994406431531599145.sh 14:53:34 ---> capture-instance-metadata.sh 14:53:34 Setup pyenv: 14:53:34 system 14:53:34 3.8.20 14:53:34 3.9.20 14:53:34 3.10.15 14:53:34 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:53:34 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-7Osf from file:/tmp/.os_lf_venv 14:53:34 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:53:41 lf-activate-venv(): INFO: Installing additional packages: lftools 14:54:05 lf-activate-venv(): INFO: Adding /tmp/venv-7Osf/bin to PATH 14:54:05 INFO: Running in OpenStack, capturing instance metadata 14:54:06 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins11948070210297898703.sh 14:54:06 provisioning config files... 14:54:07 Could not find credentials [logs] for transportpce-tox-verify-vanadium #21 14:54:07 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-vanadium@tmp/config15772205821097492149tmp 14:54:07 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 14:54:07 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 14:54:07 provisioning config files... 14:54:07 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 14:54:07 [EnvInject] - Injecting environment variables from a build step. 14:54:07 [EnvInject] - Injecting as environment variables the properties content 14:54:07 SERVER_ID=logs 14:54:07 14:54:07 [EnvInject] - Variables injected successfully. 14:54:07 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins925300058104916228.sh 14:54:07 ---> create-netrc.sh 14:54:07 WARN: Log server credential not found. 14:54:07 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins1056262865762786762.sh 14:54:07 ---> python-tools-install.sh 14:54:07 Setup pyenv: 14:54:07 system 14:54:07 3.8.20 14:54:07 3.9.20 14:54:07 3.10.15 14:54:07 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:07 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-7Osf from file:/tmp/.os_lf_venv 14:54:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:09 lf-activate-venv(): INFO: Installing additional packages: lftools 14:54:18 lf-activate-venv(): INFO: Adding /tmp/venv-7Osf/bin to PATH 14:54:18 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins2121249582613182127.sh 14:54:18 ---> uv-install.sh 14:54:18 uv 0.12.9 is already installed 14:54:18 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:54:18 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins18409031215493390967.sh 14:54:18 ---> sudo-logs.sh 14:54:18 Archiving 'sudo' log.. 14:54:19 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins16872597764068558474.sh 14:54:19 ---> job-cost.sh 14:54:19 INFO: Activating Python virtual environment... 14:54:19 Setup pyenv: 14:54:19 system 14:54:19 3.8.20 14:54:19 3.9.20 14:54:19 3.10.15 14:54:19 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:19 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-7Osf from file:/tmp/.os_lf_venv 14:54:19 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:21 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 14:54:28 lf-activate-venv(): INFO: Adding /tmp/venv-7Osf/bin to PATH 14:54:28 INFO: No stack-cost file found 14:54:28 INFO: Instance uptime: 781s 14:54:28 INFO: Fetching instance metadata (attempt 1 of 3)... 14:54:28 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 14:54:28 INFO: Successfully fetched instance metadata 14:54:28 INFO: Instance type: v3-standard-4 14:54:28 INFO: Retrieving pricing info for: v3-standard-4 14:54:28 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 14:54:28 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=781 14:54:29 INFO: Successfully fetched Vexxhost pricing API 14:54:29 INFO: Retrieved cost: 0.11 14:54:29 INFO: Retrieved resource: v3-standard-4 14:54:29 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-vanadium/archives/cost 14:54:29 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-vanadium/archives/cost.csv 14:54:29 INFO: Successfully archived job cost data 14:54:29 DEBUG: Cost data: transportpce-tox-verify-vanadium,21,2026-09-04 14:54:29,v3-standard-4,781,0.11,0.00,FAILURE 14:54:29 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins10645395858584306713.sh 14:54:29 ---> logs-deploy.sh 14:54:29 Setup pyenv: 14:54:29 system 14:54:29 3.8.20 14:54:29 3.9.20 14:54:29 3.10.15 14:54:29 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:29 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-7Osf from file:/tmp/.os_lf_venv 14:54:29 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:31 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 14:54:42 lf-activate-venv(): INFO: Adding /tmp/venv-7Osf/bin to PATH 14:54:42 WARNING: Nexus logging server not set 14:54:42 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-vanadium/21/ 14:54:42 INFO: archiving logs to S3 14:54:43 ---> uname -a: 14:54:43 Linux prd-ubuntu2204-docker-4c-16g-13 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:43 14:54:43 14:54:43 ---> lscpu: 14:54:43 Architecture: x86_64 14:54:43 CPU op-mode(s): 32-bit, 64-bit 14:54:43 Address sizes: 40 bits physical, 48 bits virtual 14:54:43 Byte Order: Little Endian 14:54:43 CPU(s): 4 14:54:43 On-line CPU(s) list: 0-3 14:54:43 Vendor ID: AuthenticAMD 14:54:43 Model name: AMD EPYC-Rome Processor 14:54:43 CPU family: 23 14:54:43 Model: 49 14:54:43 Thread(s) per core: 1 14:54:43 Core(s) per socket: 1 14:54:43 Socket(s): 4 14:54:43 Stepping: 0 14:54:43 BogoMIPS: 5600.00 14:54:43 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:43 Virtualization: AMD-V 14:54:43 Hypervisor vendor: KVM 14:54:43 Virtualization type: full 14:54:43 L1d cache: 128 KiB (4 instances) 14:54:43 L1i cache: 128 KiB (4 instances) 14:54:43 L2 cache: 2 MiB (4 instances) 14:54:43 L3 cache: 64 MiB (4 instances) 14:54:43 NUMA node(s): 1 14:54:43 NUMA node0 CPU(s): 0-3 14:54:43 Vulnerability Gather data sampling: Not affected 14:54:43 Vulnerability Indirect target selection: Not affected 14:54:43 Vulnerability Itlb multihit: Not affected 14:54:43 Vulnerability L1tf: Not affected 14:54:43 Vulnerability Mds: Not affected 14:54:43 Vulnerability Meltdown: Not affected 14:54:43 Vulnerability Mmio stale data: Not affected 14:54:43 Vulnerability Reg file data sampling: Not affected 14:54:43 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 14:54:43 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 14:54:43 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 14:54:43 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 14:54:43 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 14:54:43 Vulnerability Srbds: Not affected 14:54:43 Vulnerability Tsa: Not affected 14:54:43 Vulnerability Tsx async abort: Not affected 14:54:43 Vulnerability Vmscape: Not affected 14:54:43 14:54:43 14:54:43 ---> nproc: 14:54:43 4 14:54:43 14:54:43 14:54:43 ---> df -h: 14:54:43 Filesystem Size Used Avail Use% Mounted on 14:54:43 tmpfs 1.6G 1.1M 1.6G 1% /run 14:54:43 /dev/vda1 78G 12G 67G 15% / 14:54:43 tmpfs 7.9G 0 7.9G 0% /dev/shm 14:54:43 tmpfs 5.0M 0 5.0M 0% /run/lock 14:54:43 /dev/vda15 105M 6.1M 99M 6% /boot/efi 14:54:43 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 14:54:43 14:54:43 14:54:43 ---> free -m: 14:54:43 total used free shared buff/cache available 14:54:43 Mem: 15989 702 9656 4 5630 14943 14:54:43 Swap: 1023 0 1023 14:54:43 14:54:43 14:54:43 ---> ip addr: 14:54:43 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 14:54:43 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 14:54:43 inet 127.0.0.1/8 scope host lo 14:54:43 valid_lft forever preferred_lft forever 14:54:43 inet6 ::1/128 scope host 14:54:43 valid_lft forever preferred_lft forever 14:54:43 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 14:54:43 link/ether fa:16:3e:74:ef:cd brd ff:ff:ff:ff:ff:ff 14:54:43 altname enp0s3 14:54:43 inet 10.30.171.162/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 14:54:43 valid_lft 85613sec preferred_lft 85613sec 14:54:43 inet6 fe80::f816:3eff:fe74:efcd/64 scope link 14:54:43 valid_lft forever preferred_lft forever 14:54:43 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 14:54:43 link/ether be:d0:1f:47:9e:8f brd ff:ff:ff:ff:ff:ff 14:54:43 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 14:54:43 valid_lft forever preferred_lft forever 14:54:43 14:54:43 14:54:43 ---> sar -b -r -n DEV: 14:54:43 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-13) 09/04/26 _x86_64_ (4 CPU) 14:54:43 14:54:43 14:41:39 LINUX RESTART (4 CPU) 14:54:43 14:54:43 14:54:43 ---> sar -P ALL: 14:54:43 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-13) 09/04/26 _x86_64_ (4 CPU) 14:54:43 14:54:43 14:41:39 LINUX RESTART (4 CPU) 14:54:43 14:54:43 14:54:43