18:11:29 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125699 18:11:29 Running as SYSTEM 18:11:29 [EnvInject] - Loading node environment variables. 18:11:29 Building remotely on prd-ubuntu2204-docker-4c-16g-46910 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-titanium 18:11:29 [ssh-agent] Looking for ssh-agent implementation... 18:11:29 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 18:11:29 $ ssh-agent 18:11:29 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXrOjr0Z/agent.1556 18:11:29 SSH_AGENT_PID=1558 18:11:29 [ssh-agent] Started. 18:11:29 Running ssh-add (command line suppressed) 18:11:29 Identity added: /w/workspace/transportpce-tox-verify-titanium@tmp/private_key_6604369553211404064.key (/w/workspace/transportpce-tox-verify-titanium@tmp/private_key_6604369553211404064.key) 18:11:29 [ssh-agent] Using credentials jenkins (jenkins-ssh) 18:11:29 The recommended git tool is: NONE 18:11:31 using credential jenkins-ssh 18:11:31 Wiping out workspace first. 18:11:31 Cloning the remote Git repository 18:11:31 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 18:11:32 > git init /w/workspace/transportpce-tox-verify-titanium # timeout=10 18:11:32 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 18:11:32 > git --version # timeout=10 18:11:32 > git --version # 'git version 2.34.1' 18:11:32 using GIT_SSH to set credentials jenkins-ssh 18:11:32 Verifying host key using known hosts file, will automatically accept unseen keys 18:11:32 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 18:11:35 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 18:11:35 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 18:11:36 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 18:11:36 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 18:11:36 using GIT_SSH to set credentials jenkins-ssh 18:11:36 Verifying host key using known hosts file, will automatically accept unseen keys 18:11:36 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/99/125699/1 # timeout=10 18:11:36 > git rev-parse 13d866494a99752d6365285cbea405136433cb64^{commit} # timeout=10 18:11:36 Checking out Revision 13d866494a99752d6365285cbea405136433cb64 (refs/changes/99/125699/1) 18:11:36 > git config core.sparsecheckout # timeout=10 18:11:36 > git checkout -f 13d866494a99752d6365285cbea405136433cb64 # timeout=10 18:11:36 Commit message: "Update dependencies in pom.xml" 18:11:36 > git rev-parse FETCH_HEAD^{commit} # timeout=10 18:11:37 > git rev-list --no-walk 2a81e2c90af3b37e219571684f0971a2a0ddf97f # timeout=10 18:11:37 > git remote # timeout=10 18:11:37 > git submodule init # timeout=10 18:11:37 > git submodule sync # timeout=10 18:11:37 > git config --get remote.origin.url # timeout=10 18:11:37 > git submodule init # timeout=10 18:11:37 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 18:11:37 ERROR: No submodules found. 18:11:40 provisioning config files... 18:11:40 copy managed file [npmrc] to file:/home/jenkins/.npmrc 18:11:40 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 18:11:40 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins8064747296133221938.sh 18:11:40 ---> python-tools-install.sh 18:11:40 Setup pyenv: 18:11:40 * system (set by /opt/pyenv/version) 18:11:40 * 3.8.20 (set by /opt/pyenv/version) 18:11:40 * 3.9.20 (set by /opt/pyenv/version) 18:11:40 3.10.15 18:11:40 3.11.10 18:11:45 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-1Qla 18:11:45 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 18:11:45 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 18:11:49 lf-activate-venv(): INFO: Installing additional packages: lftools 18:12:12 lf-activate-venv(): INFO: Adding /tmp/venv-1Qla/bin to PATH 18:12:12 Generating Requirements File 18:12:39 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. 18:12:39 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 18:12:39 Python 3.11.10 18:12:39 pip 26.2.1 from /tmp/venv-1Qla/lib/python3.11/site-packages/pip (python 3.11) 18:12:39 aiohappyeyeballs==2.7.1 18:12:39 aiohttp==3.14.3 18:12:39 aiosignal==1.4.0 18:12:39 appdirs==1.4.4 18:12:39 argcomplete==3.7.2 18:12:39 aspy.yaml==1.3.0 18:12:39 attrs==26.1.0 18:12:39 autopage==0.6.0 18:12:39 beautifulsoup4==4.15.0 18:12:39 boto3==1.43.86 18:12:39 botocore==1.43.86 18:12:39 bs4==0.0.2 18:12:39 certifi==2026.7.22 18:12:39 cffi==2.1.1 18:12:39 cfgv==3.5.0 18:12:39 chardet==7.6.0 18:12:39 charset-normalizer==3.5.1 18:12:39 click==8.5.0 18:12:39 cliff==4.16.0 18:12:39 cmd2==4.2.2 18:12:39 cryptography==3.3.2 18:12:39 debtcollector==3.1.0 18:12:39 decorator==5.3.1 18:12:39 defusedxml==0.7.1 18:12:39 Deprecated==1.3.1 18:12:39 distlib==0.4.3 18:12:39 dnspython==2.8.0 18:12:39 docker==7.2.0 18:12:39 dogpile.cache==1.5.0 18:12:39 durationpy==0.11 18:12:39 email-validator==2.3.0 18:12:39 filelock==3.32.5 18:12:39 frozenlist==1.8.0 18:12:39 future==1.0.0 18:12:39 gitdb==4.0.12 18:12:39 GitPython==3.1.61 18:12:39 httplib2==0.30.2 18:12:39 identify==2.6.19 18:12:39 idna==3.19 18:12:39 importlib-resources==1.5.0 18:12:39 iso8601==2.1.0 18:12:39 Jinja2==3.1.6 18:12:39 jmespath==1.1.0 18:12:39 jsonpatch==1.33 18:12:39 jsonpointer==3.1.1 18:12:39 jsonschema==4.26.0 18:12:39 jsonschema-specifications==2025.9.1 18:12:39 keystoneauth1==5.17.0 18:12:39 kubernetes==36.0.3 18:12:39 lftools==0.37.23 18:12:39 lxml==6.1.3 18:12:39 markdown-it-py==4.2.0 18:12:39 MarkupSafe==3.0.3 18:12:39 mdurl==0.1.2 18:12:39 msgpack==1.2.2 18:12:39 multi_key_dict==2.0.3 18:12:39 multidict==6.7.1 18:12:39 munch==4.0.0 18:12:39 netaddr==1.3.0 18:12:39 niet==1.4.2 18:12:39 nodeenv==1.10.0 18:12:39 oauth2client==4.1.3 18:12:39 oauthlib==3.3.1 18:12:39 openstacksdk==4.20.0 18:12:39 os-service-types==1.9.0 18:12:39 osc-lib==4.7.0 18:12:39 oslo.config==10.7.0 18:12:39 oslo.context==6.5.0 18:12:39 oslo.i18n==6.9.0 18:12:39 oslo.log==8.3.1 18:12:39 oslo.serialization==5.11.0 18:12:39 oslo.utils==10.2.0 18:12:39 packaging==26.3 18:12:39 pbr==7.0.3 18:12:39 platformdirs==4.11.7 18:12:39 prettytable==3.18.0 18:12:39 prompt_toolkit==3.0.53 18:12:39 propcache==0.5.2 18:12:39 psutil==7.2.2 18:12:39 pyasn1==0.6.4 18:12:39 pyasn1_modules==0.4.2 18:12:39 pycparser==3.0 18:12:39 pygerrit2==2.0.15 18:12:39 PyGithub==2.10.0 18:12:39 Pygments==2.21.0 18:12:39 PyJWT==2.13.0 18:12:39 PyNaCl==1.6.2 18:12:39 pyparsing==2.4.7 18:12:39 pyperclip==1.11.0 18:12:39 pyrsistent==0.20.0 18:12:39 python-dateutil==2.9.0.post0 18:12:39 python-discovery==1.6.0 18:12:39 python-heatclient==5.3.0 18:12:39 python-jenkins==1.8.3 18:12:39 python-keystoneclient==6.0.0 18:12:39 python-magnumclient==5.0.0 18:12:39 python-manilaclient==6.3.0 18:12:39 python-openstackclient==10.3.0 18:12:39 python-swiftclient==4.11.0 18:12:39 PyYAML==6.0.3 18:12:39 referencing==0.37.0 18:12:39 requests==2.34.2 18:12:39 requests-oauthlib==2.0.0 18:12:39 rfc3986==2.0.0 18:12:39 rich==15.0.0 18:12:39 rich-argparse==1.8.0 18:12:39 rpds-py==2026.6.3 18:12:39 rsa==4.9.1 18:12:39 ruamel.yaml==0.19.1 18:12:39 ruamel.yaml.clib==0.2.15 18:12:39 s3transfer==0.19.2 18:12:39 simplejson==4.1.2 18:12:39 six==1.17.0 18:12:39 smmap==5.0.3 18:12:39 soupsieve==2.9.2 18:12:39 stevedore==5.9.1 18:12:39 tabulate==0.10.0 18:12:39 toml==0.10.2 18:12:39 tomlkit==0.15.1 18:12:39 tqdm==4.70.0 18:12:39 typing_extensions==4.16.0 18:12:39 urllib3==1.26.20 18:12:39 virtualenv==21.7.8 18:12:39 wcwidth==0.8.3 18:12:39 websocket-client==1.9.2 18:12:39 wrapt==2.4.0 18:12:39 xdg==6.0.0 18:12:39 xmltodict==1.0.4 18:12:39 yarl==1.24.5 18:12:39 yq==4.1.2 18:12:40 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins11274588336138865826.sh 18:12:40 ---> uv-install.sh 18:12:40 Installing uv/uvx (latest) using shell installer 18:12:40 2026-09-02 18:12:40 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-sbSsRV.sh" [1] 18:12:40 downloading uv 0.12.9 x86_64-unknown-linux-gnu 18:12:41 installing to /home/jenkins/.local/bin 18:12:41 uv 18:12:41 uvx 18:12:41 everything's installed! 18:12:41 18:12:41 To add $HOME/.local/bin to your PATH, either restart your shell or run: 18:12:41 18:12:41 source $HOME/.local/bin/env (sh, bash, zsh) 18:12:41 source $HOME/.local/bin/env.fish (fish) 18:12:41 Adding install location to PATH 18:12:41 ---> Validating uv/uvx install 18:12:41 uvx 0.12.9 (x86_64-unknown-linux-gnu) 18:12:41 [EnvInject] - Injecting environment variables from a build step. 18:12:41 [EnvInject] - Injecting as environment variables the properties content 18:12:41 PYTHON=python3 18:12:41 18:12:41 [EnvInject] - Variables injected successfully. 18:12:41 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins13766786274861734977.sh 18:12:41 ---> tox-install.sh 18:12:41 + source /home/jenkins/lf-env.sh 18:12:41 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 18:12:41 ++ mktemp -d /tmp/venv-XXXX 18:12:41 + lf_venv=/tmp/venv-oG23 18:12:41 + local venv_file=/tmp/.os_lf_venv 18:12:41 + local python=python3 18:12:41 + local options 18:12:41 + local set_path=true 18:12:41 + local install_args= 18:12:41 ++ 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 18:12:41 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 18:12:41 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 18:12:41 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 18:12:41 + true 18:12:41 + case $1 in 18:12:41 + venv_file=/tmp/.toxenv 18:12:41 + shift 2 18:12:41 + true 18:12:41 + case $1 in 18:12:41 + shift 18:12:41 + break 18:12:41 + case $python in 18:12:41 + local pkg_list= 18:12:41 + [[ -d /opt/pyenv ]] 18:12:41 + echo 'Setup pyenv:' 18:12:41 Setup pyenv: 18:12:41 + export PYENV_ROOT=/opt/pyenv 18:12:41 + PYENV_ROOT=/opt/pyenv 18:12:41 + 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 18:12:41 + 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 18:12:41 + pyenv versions 18:12:41 system 18:12:41 3.8.20 18:12:41 3.9.20 18:12:41 3.10.15 18:12:41 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 18:12:41 + command -v pyenv 18:12:41 ++ pyenv init - --no-rehash 18:12:41 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 18:12:41 for i in ${!paths[@]}; do 18:12:41 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 18:12:41 fi; done; 18:12:41 echo "${paths[*]}"'\'')" 18:12:41 export PATH="/opt/pyenv/shims:${PATH}" 18:12:41 export PYENV_SHELL=bash 18:12:41 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 18:12:41 pyenv() { 18:12:41 local command 18:12:41 command="${1:-}" 18:12:41 if [ "$#" -gt 0 ]; then 18:12:41 shift 18:12:41 fi 18:12:41 18:12:41 case "$command" in 18:12:41 rehash|shell) 18:12:41 eval "$(pyenv "sh-$command" "$@")" 18:12:41 ;; 18:12:41 *) 18:12:41 command pyenv "$command" "$@" 18:12:41 ;; 18:12:41 esac 18:12:41 }' 18:12:41 +++ bash --norc -ec 'IFS=:; paths=($PATH); 18:12:41 for i in ${!paths[@]}; do 18:12:41 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 18:12:41 fi; done; 18:12:41 echo "${paths[*]}"' 18:12:41 ++ 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 18:12:41 ++ 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 18:12:41 ++ 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 18:12:41 ++ export PYENV_SHELL=bash 18:12:41 ++ PYENV_SHELL=bash 18:12:41 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 18:12:41 +++ complete -F _pyenv pyenv 18:12:41 ++ lf-pyver python3 18:12:41 ++ local py_version_xy=python3 18:12:41 ++ local py_version_xyz= 18:12:41 ++ pyenv versions 18:12:41 ++ local command 18:12:41 ++ command=versions 18:12:41 ++ '[' 1 -gt 0 ']' 18:12:41 ++ shift 18:12:41 ++ case "$command" in 18:12:41 ++ command pyenv versions 18:12:41 ++ sed 's/^[ *]* //' 18:12:41 ++ awk '{ print $1 }' 18:12:41 ++ grep -E '^[0-9.]*[0-9]$' 18:12:41 ++ [[ ! -s /tmp/.pyenv_versions ]] 18:12:41 +++ grep '^3' /tmp/.pyenv_versions 18:12:41 +++ sort -V 18:12:41 +++ tail -n 1 18:12:41 ++ py_version_xyz=3.11.10 18:12:41 ++ [[ -z 3.11.10 ]] 18:12:41 ++ echo 3.11.10 18:12:41 ++ return 0 18:12:41 + pyenv local 3.11.10 18:12:41 + local command 18:12:41 + command=local 18:12:41 + '[' 2 -gt 0 ']' 18:12:41 + shift 18:12:41 + case "$command" in 18:12:41 + command pyenv local 3.11.10 18:12:41 + for arg in "$@" 18:12:41 + case $arg in 18:12:41 + pkg_list+='tox ' 18:12:41 + for arg in "$@" 18:12:41 + case $arg in 18:12:41 + pkg_list+='virtualenv ' 18:12:41 + for arg in "$@" 18:12:41 + case $arg in 18:12:41 + pkg_list+='urllib3~=1.26.15 ' 18:12:41 + [[ -f /tmp/.toxenv ]] 18:12:41 + [[ ! -f /tmp/.toxenv ]] 18:12:41 + [[ -n '' ]] 18:12:41 + python3 -m venv /tmp/venv-oG23 18:12:45 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-oG23' 18:12:45 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-oG23 18:12:45 + echo /tmp/venv-oG23 18:12:45 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 18:12:45 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 18:12:45 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 18:12:45 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 18:12:45 + local 'pip_opts=--upgrade --quiet' 18:12:45 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 18:12:45 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 18:12:45 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 18:12:45 + [[ -n '' ]] 18:12:45 + [[ -n '' ]] 18:12:45 + lf-venv-pip-install /tmp/venv-oG23/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 18:12:45 + local venv_python=/tmp/venv-oG23/bin/python3 18:12:45 + shift 18:12:45 + local upstream=https://pypi.org/simple 18:12:45 + /tmp/venv-oG23/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 18:12:49 + return 0 18:12:49 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 18:12:49 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 18:12:49 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 18:12:49 + lf-venv-pip-install /tmp/venv-oG23/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 18:12:49 + local venv_python=/tmp/venv-oG23/bin/python3 18:12:49 + shift 18:12:49 + local upstream=https://pypi.org/simple 18:12:49 + /tmp/venv-oG23/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 18:12:51 + return 0 18:12:51 + type python3 18:12:51 + true 18:12:51 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-oG23/bin to PATH' 18:12:51 lf-activate-venv(): INFO: Adding /tmp/venv-oG23/bin to PATH 18:12:51 + PATH=/tmp/venv-oG23/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 18:12:51 + return 0 18:12:51 + python3 --version 18:12:51 Python 3.11.10 18:12:51 + python3 -m pip --version 18:12:51 pip 26.2.1 from /tmp/venv-oG23/lib/python3.11/site-packages/pip (python 3.11) 18:12:51 + python3 -m pip freeze 18:12:52 cachetools==7.1.8 18:12:52 colorama==0.4.6 18:12:52 distlib==0.4.3 18:12:52 filelock==3.32.5 18:12:52 packaging==26.3 18:12:52 platformdirs==4.11.7 18:12:52 pluggy==1.6.0 18:12:52 pyproject-api==1.11.0 18:12:52 python-discovery==1.6.0 18:12:52 tomli_w==1.2.0 18:12:52 tox==4.61.2 18:12:52 typing_extensions==4.16.0 18:12:52 urllib3==1.26.20 18:12:52 virtualenv==21.7.8 18:12:52 [transportpce-tox-verify-titanium] $ /bin/sh -xe /tmp/jenkins3294932158842671506.sh 18:12:52 [EnvInject] - Injecting environment variables from a build step. 18:12:52 [EnvInject] - Injecting as environment variables the properties content 18:12:52 PARALLEL=True 18:12:52 18:12:52 [EnvInject] - Variables injected successfully. 18:12:52 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins7976582301796101468.sh 18:12:52 ---> tox-run.sh 18:12:52 + 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 18:12:52 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/tox 18:12:52 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/docs 18:12:52 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/tox 18:12:52 + cd /w/workspace/transportpce-tox-verify-titanium/. 18:12:52 + source /home/jenkins/lf-env.sh 18:12:52 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 18:12:52 ++ mktemp -d /tmp/venv-XXXX 18:12:52 + lf_venv=/tmp/venv-Gb2G 18:12:52 + local venv_file=/tmp/.os_lf_venv 18:12:52 + local python=python3 18:12:52 + local options 18:12:52 + local set_path=true 18:12:52 + local install_args= 18:12:52 ++ 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 18:12:52 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 18:12:52 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 18:12:52 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 18:12:52 + true 18:12:52 + case $1 in 18:12:52 + venv_file=/tmp/.toxenv 18:12:52 + shift 2 18:12:52 + true 18:12:52 + case $1 in 18:12:52 + shift 18:12:52 + break 18:12:52 + case $python in 18:12:52 + local pkg_list= 18:12:52 + [[ -d /opt/pyenv ]] 18:12:52 + echo 'Setup pyenv:' 18:12:52 Setup pyenv: 18:12:52 + export PYENV_ROOT=/opt/pyenv 18:12:52 + PYENV_ROOT=/opt/pyenv 18:12:52 + 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 18:12:52 + 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 18:12:52 + pyenv versions 18:12:52 system 18:12:52 3.8.20 18:12:52 3.9.20 18:12:52 3.10.15 18:12:52 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 18:12:52 + command -v pyenv 18:12:52 ++ pyenv init - --no-rehash 18:12:52 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 18:12:52 for i in ${!paths[@]}; do 18:12:52 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 18:12:52 fi; done; 18:12:52 echo "${paths[*]}"'\'')" 18:12:52 export PATH="/opt/pyenv/shims:${PATH}" 18:12:52 export PYENV_SHELL=bash 18:12:52 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 18:12:52 pyenv() { 18:12:52 local command 18:12:52 command="${1:-}" 18:12:52 if [ "$#" -gt 0 ]; then 18:12:52 shift 18:12:52 fi 18:12:52 18:12:52 case "$command" in 18:12:52 rehash|shell) 18:12:52 eval "$(pyenv "sh-$command" "$@")" 18:12:52 ;; 18:12:52 *) 18:12:52 command pyenv "$command" "$@" 18:12:52 ;; 18:12:52 esac 18:12:52 }' 18:12:52 +++ bash --norc -ec 'IFS=:; paths=($PATH); 18:12:52 for i in ${!paths[@]}; do 18:12:52 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 18:12:52 fi; done; 18:12:52 echo "${paths[*]}"' 18:12:52 ++ 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 18:12:52 ++ 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 18:12:52 ++ 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 18:12:52 ++ export PYENV_SHELL=bash 18:12:52 ++ PYENV_SHELL=bash 18:12:52 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 18:12:52 +++ complete -F _pyenv pyenv 18:12:52 ++ lf-pyver python3 18:12:52 ++ local py_version_xy=python3 18:12:52 ++ local py_version_xyz= 18:12:52 ++ pyenv versions 18:12:52 ++ local command 18:12:52 ++ command=versions 18:12:52 ++ '[' 1 -gt 0 ']' 18:12:52 ++ shift 18:12:52 ++ case "$command" in 18:12:52 ++ command pyenv versions 18:12:52 ++ sed 's/^[ *]* //' 18:12:52 ++ awk '{ print $1 }' 18:12:52 ++ grep -E '^[0-9.]*[0-9]$' 18:12:52 ++ [[ ! -s /tmp/.pyenv_versions ]] 18:12:52 +++ grep '^3' /tmp/.pyenv_versions 18:12:52 +++ sort -V 18:12:52 +++ tail -n 1 18:12:52 ++ py_version_xyz=3.11.10 18:12:52 ++ [[ -z 3.11.10 ]] 18:12:52 ++ echo 3.11.10 18:12:52 ++ return 0 18:12:52 + pyenv local 3.11.10 18:12:52 + local command 18:12:52 + command=local 18:12:52 + '[' 2 -gt 0 ']' 18:12:52 + shift 18:12:52 + case "$command" in 18:12:52 + command pyenv local 3.11.10 18:12:52 + for arg in "$@" 18:12:52 + case $arg in 18:12:52 + pkg_list+='tox ' 18:12:52 + for arg in "$@" 18:12:52 + case $arg in 18:12:52 + pkg_list+='virtualenv ' 18:12:52 + for arg in "$@" 18:12:52 + case $arg in 18:12:52 + pkg_list+='urllib3~=1.26.15 ' 18:12:52 + [[ -f /tmp/.toxenv ]] 18:12:52 ++ cat /tmp/.toxenv 18:12:52 + lf_venv=/tmp/venv-oG23 18:12:52 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-oG23 from' file:/tmp/.toxenv 18:12:52 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-oG23 from file:/tmp/.toxenv 18:12:52 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 18:12:52 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 18:12:52 + local 'pip_opts=--upgrade --quiet' 18:12:52 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 18:12:52 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 18:12:52 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 18:12:52 + [[ -n '' ]] 18:12:52 + [[ -n '' ]] 18:12:52 + lf-venv-pip-install /tmp/venv-oG23/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 18:12:52 + local venv_python=/tmp/venv-oG23/bin/python3 18:12:52 + shift 18:12:52 + local upstream=https://pypi.org/simple 18:12:52 + /tmp/venv-oG23/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 18:12:53 + return 0 18:12:53 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 18:12:53 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 18:12:53 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 18:12:53 + lf-venv-pip-install /tmp/venv-oG23/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 18:12:53 + local venv_python=/tmp/venv-oG23/bin/python3 18:12:53 + shift 18:12:53 + local upstream=https://pypi.org/simple 18:12:53 + /tmp/venv-oG23/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 18:12:54 + return 0 18:12:54 + type python3 18:12:54 + true 18:12:54 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-oG23/bin to PATH' 18:12:54 lf-activate-venv(): INFO: Adding /tmp/venv-oG23/bin to PATH 18:12:54 + PATH=/tmp/venv-oG23/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 18:12:54 + return 0 18:12:54 + [[ -d /opt/pyenv ]] 18:12:54 + echo '---> Setting up pyenv' 18:12:54 ---> Setting up pyenv 18:12:54 + export PYENV_ROOT=/opt/pyenv 18:12:54 + PYENV_ROOT=/opt/pyenv 18:12:54 + export PATH=/opt/pyenv/bin:/tmp/venv-oG23/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 18:12:54 + PATH=/opt/pyenv/bin:/tmp/venv-oG23/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 18:12:54 ++ pwd 18:12:54 + PYTHONPATH=/w/workspace/transportpce-tox-verify-titanium 18:12:54 + export PYTHONPATH 18:12:54 + export TOX_TESTENV_PASSENV=PYTHONPATH 18:12:54 + TOX_TESTENV_PASSENV=PYTHONPATH 18:12:54 + tox --version 18:12:54 4.61.2 from /tmp/venv-oG23/lib/python3.11/site-packages/tox/__init__.py 18:12:54 + PARALLEL=True 18:12:54 + TOX_OPTIONS_LIST= 18:12:54 + [[ -n '' ]] 18:12:54 + case ${PARALLEL,,} in 18:12:54 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 18:12:54 + tox --parallel auto --parallel-live 18:12:54 + tee -a /w/workspace/transportpce-tox-verify-titanium/archives/tox/tox.log 18:12:56 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:12:56 docs: install_deps> python -I -m pip install -r docs/requirements.txt 18:12:56 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 18:12:56 checkbashisms: freeze> python -m pip freeze --all 18:12:56 checkbashisms: pip==26.2.1,setuptools==84.0.0 18:12:56 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 18:12:56 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-titanium/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)' 18:12:56 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 18:12:58 checkbashisms: OK ✔ in 3.03 seconds 18:12:58 pre-commit: install_deps> python -I -m pip install pre-commit 18:13:00 pre-commit: freeze> python -m pip freeze --all 18:13:00 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.5,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.7,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.8 18:13:00 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 18:13:00 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-titanium/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)' 18:13:00 /usr/bin/cpan 18:13:00 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run --all-files --show-diff-on-failure 18:13:01 [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. 18:13:01 [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. 18:13:01 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 18:13:01 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 18:13:01 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 18:13:03 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 18:13:03 buildcontroller: freeze> python -m pip freeze --all 18:13:03 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 18:13:03 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh 18:13:03 + update-java-alternatives -l 18:13:03 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 18:13:03 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 18:13:03 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 18:13:03 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 18:13:03 update-alternatives: error: no alternatives for jaotc 18:13:04 update-alternatives: error: no alternatives for rmic 18:13:04 + java -version 18:13:04 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 18:13:04 + JAVA_VER=21 18:13:04 + echo 21 18:13:04 21 18:13:04 + + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 18:13:04 javac -version 18:13:04 + JAVAC_VER=21 18:13:04 + echo 21 18:13:04 + [ 21 -ge 21 ] 18:13:04 + [ 21 -ge 21 ] 18:13:04 + echo ok, java is 21 or newer 18:13:04 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 18:13:04 21 18:13:04 ok, java is 21 or newer 18:13:04 2026-09-02 18:13:04 URL:https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz [9278065/9278065] -> "/tmp/apache-maven-3.9.16-bin.tar.gz" [1] 18:13:04 + sudo mkdir -p /opt 18:13:04 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 18:13:04 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 18:13:04 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 18:13:04 + mvn --version 18:13:05 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 18:13:05 Maven home: /opt/maven 18:13:05 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 18:13:05 Default locale: en, platform encoding: UTF-8 18:13:05 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 18:13:05 NOTE: Picked up JDK_JAVA_OPTIONS: 18:13:05 --add-opens=java.base/java.io=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.lang=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.net=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.nio=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.nio.file=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.util=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.util.jar=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.util.stream=ALL-UNNAMED 18:13:05 --add-opens=java.base/java.util.zip=ALL-UNNAMED 18:13:05 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 18:13:05 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 18:13:05 -Xlog:disable 18:13:05 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 18:13:06 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 18:13:06 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 18:13:09 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 18:13:09 [INFO] Once installed this environment will be reused. 18:13:09 [INFO] This may take a few minutes... 18:13:10 docs: freeze> python -m pip freeze --all 18:13:10 docs-linkcheck: freeze> python -m pip freeze --all 18:13:10 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.37.4,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==2.1.0,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.4.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 18:13:10 docs: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-titanium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-titanium/docs/_build/html 18:13:10 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.37.4,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==2.1.0,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.4.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 18:13:10 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-titanium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-titanium/docs/_build/linkcheck 18:13:14 docs: OK ✔ in 19 seconds 18:13:14 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 18:13:14 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 18:13:14 [INFO] Once installed this environment will be reused. 18:13:14 [INFO] This may take a few minutes... 18:13:16 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 71, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 18:13:16 @ 18:13:16 [ERROR] The build could not read 11 projects -> [Help 1] 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-api:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/api/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-common:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/common/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:test-common:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/test-common/pom.xml) has 2 errors 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-renderer:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/renderer/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-networkmodel:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/networkmodel/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 71, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-olm:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/olm/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-pce:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/pce/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-servicehandler:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/servicehandler/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-tapi:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/tapi/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-nbinotifications:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/nbinotifications/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] The project org.opendaylight.transportpce:transportpce-dmaap-client:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/dmaap-client/pom.xml) has 1 error 18:13:16 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 18:13:16 [ERROR] 18:13:16 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 18:13:16 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 18:13:16 [ERROR] 18:13:16 [ERROR] For more information about the errors and possible solutions, please read the following articles: 18:13:16 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 18:13:16 buildcontroller: exit 1 (12.51 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh pid=2692 18:13:16 buildcontroller: FAIL ✖ in 21.44 seconds 18:13:16 docs-linkcheck: OK ✔ in 21.47 seconds 18:13:16 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:13:16 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:13:17 pylint: freeze> python -m pip freeze --all 18:13:17 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 18:13:17 pylint: commands[0] /w/workspace/transportpce-tox-verify-titanium/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}$' '{}' + 18:13:20 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 18:13:20 [INFO] Once installed this environment will be reused. 18:13:20 [INFO] This may take a few minutes... 18:13:22 build_karaf_tests121: freeze> python -m pip freeze --all 18:13:22 build_karaf_tests221: freeze> python -m pip freeze --all 18:13: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 18:13:23 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 18:13:23 build karaf in karaf121 with ./karaf121.env 18:13:23 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 18:13:23 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 18:13:23 build karaf in karaf221 with ./karaf221.env 18:13:23 NOTE: Picked up JDK_JAVA_OPTIONS: 18:13:23 --add-opens=java.base/java.io=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.lang=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.net=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.nio=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.nio.file=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util.jar=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util.stream=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util.zip=ALL-UNNAMED 18:13:23 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 18:13:23 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 18:13:23 -Xlog:disable 18:13:23 NOTE: Picked up JDK_JAVA_OPTIONS: 18:13:23 --add-opens=java.base/java.io=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.lang=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.net=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.nio=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.nio.file=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util.jar=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util.stream=ALL-UNNAMED 18:13:23 --add-opens=java.base/java.util.zip=ALL-UNNAMED 18:13:23 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 18:13:23 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 18:13:23 -Xlog:disable 18:13:24 [INFO] Installing environment for https://github.com/perltidy/perltidy. 18:13:24 [INFO] Once installed this environment will be reused. 18:13:24 [INFO] This may take a few minutes... 18:13:32 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] -> [Help 1] 18:13:32 [ERROR] 18:13:32 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 18:13:32 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 18:13:32 [ERROR] 18:13:32 [ERROR] For more information about the errors and possible solutions, please read the following articles: 18:13:32 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 18:13:32 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:32 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:13:32 [ERROR] -> [Help 1] 18:13:32 [ERROR] 18:13:32 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 18:13:32 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 18:13:32 [ERROR] 18:13:32 [ERROR] For more information about the errors and possible solutions, please read the following articles: 18:13:32 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 18:13:32 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 18:13:32 build_karaf_tests121: exit 127 (9.04 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3317 18:13:32 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 18:13:32 build_karaf_tests121: FAIL ✖ in 15.85 seconds 18:13:32 build_karaf_tests221: exit 127 (9.02 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3360 18:13:32 build_karaf_tests221: FAIL ✖ in 15.83 seconds 18:13:32 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:13:32 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:13:35 trim trailing whitespace.................................................Passed 18:13:35 Tabs remover.............................................................Passed 18:13:36 autopep8.................................................................Passed 18:13:40 perltidy.................................................................build_karaf_tests71: freeze> python -m pip freeze --all 18:13:40 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 18:13:40 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 18:13:40 build karaf in karaf71 with ./karaf71.env 18:13:40 Passed 18:13:40 NOTE: Picked up JDK_JAVA_OPTIONS: 18:13:40 --add-opens=java.base/java.io=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.lang=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.net=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.nio=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.nio.file=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.util=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.util.jar=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.util.stream=ALL-UNNAMED 18:13:40 --add-opens=java.base/java.util.zip=ALL-UNNAMED 18:13:40 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 18:13:40 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 18:13:40 -Xlog:disable 18:13:40 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run gitlint-ci --hook-stage manual 18:13:40 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 18:13:40 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 18:13:40 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 18:13:40 [INFO] Once installed this environment will be reused. 18:13:40 [INFO] This may take a few minutes... 18:13:40 build_karaf_tests190: freeze> python -m pip freeze --all 18:13:41 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 18:13:41 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 18:13:41 build karaf in karafoc with ./karafoc.env 18:13:41 NOTE: Picked up JDK_JAVA_OPTIONS: 18:13:41 --add-opens=java.base/java.io=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.lang=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.net=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.nio=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.nio.file=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.util=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.util.jar=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.util.stream=ALL-UNNAMED 18:13:41 --add-opens=java.base/java.util.zip=ALL-UNNAMED 18:13:41 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 18:13:41 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 18:13:41 -Xlog:disable 18:13:41 18:13:41 ------------------------------------ 18:13:41 Your code has been rated at 10.00/10 18:13:41 18:13:44 pylint: OK ✔ in 30.09 seconds 18:13:44 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:13:45 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 18:13:45 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:45 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:45 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:45 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:45 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:45 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:45 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:45 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:45 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:45 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:45 [ERROR] -> [Help 1] 18:13:45 [ERROR] 18:13:45 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 18:13:45 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 18:13:45 [ERROR] 18:13:45 [ERROR] For more information about the errors and possible solutions, please read the following articles: 18:13:45 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 18:13:45 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 18:13:45 build_karaf_tests71: exit 127 (5.31 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3642 18:13:46 build_karaf_tests71: FAIL ✖ in 13.59 seconds 18:13:46 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:13:46 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 18:13:46 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:46 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:46 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:46 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:46 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:46 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:46 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:46 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:46 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 18:13:46 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 18:13:46 [ERROR] -> [Help 1] 18:13:46 [ERROR] 18:13:46 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 18:13:46 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 18:13:46 [ERROR] 18:13:46 [ERROR] For more information about the errors and possible solutions, please read the following articles: 18:13:46 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 18:13:46 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 18:13:46 build_karaf_tests190: exit 127 (5.30 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3729 18:13:46 build_karaf_tests190: FAIL ✖ in 14.15 seconds 18:13:46 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:13:48 gitlint..................................................................Passed 18:13:51 pre-commit: OK ✔ in 50.69 seconds 18:13:51 buildlighty: freeze> python -m pip freeze --all 18:13:51 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 18:13:51 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh 18:13:51 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 18:13:52 sims: freeze> python -m pip freeze --all 18:13:52 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 18:13:52 sims: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./install_lightynode.sh 18:13:52 Using lighynode version 20.1.0.5 18:13:52 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 18:14:06 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:11.3.0-SNAPSHOT 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-api:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-api:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-common:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-common:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-networkmodel:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-pce:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-olm:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-servicehandler:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-tapi:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:11.3.0-SNAPSHOT (compile) 18:14:06 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-nbinotifications:jar:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 18:14:06 [ERROR] -> [Help 1] 18:14:06 [ERROR] 18:14:06 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 18:14:06 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 18:14:06 [ERROR] 18:14:06 [ERROR] For more information about the errors and possible solutions, please read the following articles: 18:14:06 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 18:14:06 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 18:14:06 sims: OK ✔ in 10.01 seconds 18:14:06 buildlighty: exit 9 (14.75 seconds) /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh pid=3880 18:14:35 buildlighty: FAIL ✖ in 22.2 seconds 18:14:35 testsPCE: freeze> python -m pip freeze --all 18:14:35 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.64.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.3,matplotlib==3.11.1,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 18:14:35 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce 18:14:35 pytest -q transportpce_tests/pce/test01_pce.py 18:16:35 EEEEEEEEEEEEEEEEEEEE [100%] 18:16:39 ==================================== ERRORS ==================================== 18:16:39 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 18:16:39 18:16:39 cls = 18:16:39 18:16:39 @classmethod 18:16:39 def setUpClass(cls): 18:16:39 # pylint: disable=bare-except 18:16:39 sample_files_parsed = False 18:16:39 time.sleep(20) 18:16:39 try: 18:16:39 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 18:16:39 "..", "..", "sample_configs", "honeynode-topo.json") 18:16:39 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 18:16:39 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 18:16:39 18:16:39 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 18:16:39 "..", "..", "sample_configs", "NW-simple-topology.json") 18:16:39 18:16:39 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 18:16:39 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 18:16:39 18:16:39 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 18:16:39 "..", "..", "sample_configs", "NW-for-test-5-4.json") 18:16:39 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 18:16:39 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 18:16:39 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 18:16:39 "..", "..", "sample_configs", "pce_portmapping_121.json") 18:16:39 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 18:16:39 cls.port_mapping_data = port_mapping.read() 18:16:39 sample_files_parsed = True 18:16:39 except PermissionError as err: 18:16:39 print("Permission Error when trying to read sample files\n", err) 18:16:39 sys.exit(2) 18:16:39 except FileNotFoundError as err: 18:16:39 print("File Not found Error when trying to read sample files\n", err) 18:16:39 sys.exit(2) 18:16:39 except: 18:16:39 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 18:16:39 sys.exit(2) 18:16:39 finally: 18:16:39 if sample_files_parsed: 18:16:39 print("sample files content loaded") 18:16:39 18:16:39 > cls.processes = test_utils.start_tpce() 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 18:16:39 transportpce_tests/pce/test01_pce.py:93: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 def start_tpce(): 18:16:39 if 'NO_ODL_STARTUP' in os.environ: 18:16:39 print('No OpenDaylight instance to start!') 18:16:39 return [] 18:16:39 print('starting OpenDaylight...') 18:16:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 18:16:39 process = start_lighty() 18:16:39 else: 18:16:39 process = start_karaf() 18:16:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 18:16:39 print('OpenDaylight started !') 18:16:39 else: 18:16:39 print('OpenDaylight failed to start !') 18:16:39 shutdown_process(process) 18:16:39 for pid in process_list: 18:16:39 shutdown_process(pid) 18:16:39 > sys.exit(1) 18:16:39 E SystemExit: 1 18:16:39 18:16:39 transportpce_tests/common/test_utils.py:232: SystemExit 18:16:39 ---------------------------- Captured stdout setup ----------------------------- 18:16:39 sample files content loaded 18:16:39 starting OpenDaylight... 18:16:39 starting KARAF (karaf) TransportPCE build... 18:16:39 Pattern not found after 100 seconds! OpenDaylight failed to start ! 18:16:39 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7bb2e0> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cb4c0> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d78bf60> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7bb2e0> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83fbd1120> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7bb2e0> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7c9d00> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cba60> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d78bf60> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cbb00> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cb380> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d78bf60> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cafc0> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7c9da0> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cbd80> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cbb00> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d78be20> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d78bce0> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 18:16:39 18:16:39 cls = 18:16:39 func = . at 0x7fc83d7cbc40> 18:16:39 when = 'setup' 18:16:39 reraise = (, ) 18:16:39 18:16:39 @classmethod 18:16:39 def from_call( 18:16:39 cls, 18:16:39 func: Callable[[], TResult], 18:16:39 when: Literal["collect", "setup", "call", "teardown"], 18:16:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:16:39 ) -> CallInfo[TResult]: 18:16:39 """Call func, wrapping the result in a CallInfo. 18:16:39 18:16:39 :param func: 18:16:39 The function to call. Called without arguments. 18:16:39 :type func: Callable[[], _pytest.runner.TResult] 18:16:39 :param when: 18:16:39 The phase in which the function is called. 18:16:39 :param reraise: 18:16:39 Exception or exceptions that shall propagate if raised by the 18:16:39 function, instead of being wrapped in the CallInfo. 18:16:39 """ 18:16:39 excinfo = None 18:16:39 instant = timing.Instant() 18:16:39 try: 18:16:39 > result: TResult | None = func() 18:16:39 ^^^^^^ 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:16:39 lambda: runtest_hook(item=item, **kwds), 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:16:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:16:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:16:39 yield 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:16:39 return (yield) 18:16:39 ^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:16:39 item.session._setupstate.setup(item) 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:16:39 col.setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:16:39 super().setup() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:16:39 self._request._fillfixtures() 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:16:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:16:39 fixturedef = self._get_active_fixturedef(argname) 18:16:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:16:39 fixturedef.execute(request=subrequest) 18:16:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:16:39 18:16:39 self = 18:16:39 request = > 18:16:39 18:16:39 def execute(self, request: SubRequest) -> FixtureValue: 18:16:39 """Return the value of this fixture, executing it if not cached.""" 18:16:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:16:39 # This needs to be done before checking if we have a cached value, since 18:16:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:16:39 # parametrization, they finalize themselves and fixtures depending on it 18:16:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:16:39 # See #4871 18:16:39 requested_fixtures_that_should_finalize_us = [] 18:16:39 for argname in self.argnames: 18:16:39 fixturedef = request._get_active_fixturedef(argname) 18:16:39 # Saves requested fixtures in a list so we later can add our finalizer 18:16:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:16:39 # down first. This is generally handled by SetupState, but still currently 18:16:39 # needed when this fixture is not parametrized but depends on a parametrized 18:16:39 # fixture. 18:16:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:16:39 18:16:39 # Check for (and return) cached value/exception. 18:16:39 if self.cached_result is not None: 18:16:39 request_cache_key = self.cache_key(request) 18:16:39 cache_key = self.cached_result[1] 18:16:39 try: 18:16:39 # Attempt to make a normal == check: this might fail for objects 18:16:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:16:39 cache_hit = bool(request_cache_key == cache_key) 18:16:39 except (ValueError, RuntimeError): 18:16:39 # If the comparison raises, use 'is' as fallback. 18:16:39 cache_hit = request_cache_key is cache_key 18:16:39 18:16:39 if cache_hit: 18:16:39 if self.cached_result[2] is not None: 18:16:39 exc, exc_tb = self.cached_result[2] 18:16:39 raise exc.with_traceback(exc_tb) 18:16:39 else: 18:16:39 return self.cached_result[0] 18:16:39 # We have a previous but differently parametrized fixture instance 18:16:39 # so we need to tear it down before creating a new one. 18:16:39 self.finish(request) 18:16:39 assert self.cached_result is None 18:16:39 18:16:39 # Add finalizer to requested fixtures we saved previously. 18:16:39 # We make sure to do this after checking for cached value to avoid 18:16:39 # adding our finalizer multiple times. (#12135) 18:16:39 finalizer = functools.partial(self.finish, request=request) 18:16:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:16:39 parent_fixture.addfinalizer(finalizer) 18:16:39 18:16:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:16:39 # which is executed last. 18:16:39 > assert not self._finalizers 18:16:39 ^^^^^^^^^^^^^^^^^^^^ 18:16:39 E AssertionError 18:16:39 18:16:39 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:16:39 =========================== short test summary info ============================ 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 18:16:39 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 18:16:39 20 errors in 123.79s (0:02:03) 18:16:39 testsPCE: exit 1 (124.09 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce pid=4022 18:16:40 testsPCE: FAIL ✖ in 2 minutes 52.96 seconds 18:16:40 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:16:40 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:16:40 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:16:48 tests190: freeze> python -m pip freeze --all 18:16:48 tests121: freeze> python -m pip freeze --all 18:16:48 tests_tapi: freeze> python -m pip freeze --all 18:16: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 18:16:48 tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc 18:16:48 using environment variables from ./karafoc.env 18:16:48 pytest -q transportpce_tests/oc/test01_portmapping.py 18:16: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 18:16:48 tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 18:16:48 using environment variables from ./karaf121.env 18:16:48 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 18:16:49 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 18:16:49 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi 18:16:49 using environment variables from ./karaf221.env 18:16:49 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 18:18:29 EEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 18:18:31 ==================================== ERRORS ==================================== 18:18:31 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 18:18:31 18:18:31 cls = 18:18:31 18:18:31 @classmethod 18:18:31 def setUpClass(cls): 18:18:31 > cls.processes = test_utils.start_tpce() 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 18:18:31 transportpce_tests/oc/test01_portmapping.py:29: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 def start_tpce(): 18:18:31 if 'NO_ODL_STARTUP' in os.environ: 18:18:31 print('No OpenDaylight instance to start!') 18:18:31 return [] 18:18:31 print('starting OpenDaylight...') 18:18:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 18:18:31 process = start_lighty() 18:18:31 else: 18:18:31 process = start_karaf() 18:18:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 18:18:31 print('OpenDaylight started !') 18:18:31 else: 18:18:31 print('OpenDaylight failed to start !') 18:18:31 shutdown_process(process) 18:18:31 for pid in process_list: 18:18:31 shutdown_process(pid) 18:18:31 > sys.exit(1) 18:18:31 E SystemExit: 1 18:18:31 18:18:31 transportpce_tests/common/test_utils.py:232: SystemExit 18:18:31 ---------------------------- Captured stdout setup ----------------------------- 18:18:31 starting OpenDaylight... 18:18:31 starting KARAF (karafoc) TransportPCE build... 18:18:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 18:18:31 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11abf70fe0> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11abf936a0> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11abf57240> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11ad71efc0> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11abf913a0> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11abf71120> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11ae66c400> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11abf57240> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 18:18:31 18:18:31 cls = 18:18:31 func = . at 0x7f11abf71120> 18:18:31 when = 'setup' 18:18:31 reraise = (, ) 18:18:31 18:18:31 @classmethod 18:18:31 def from_call( 18:18:31 cls, 18:18:31 func: Callable[[], TResult], 18:18:31 when: Literal["collect", "setup", "call", "teardown"], 18:18:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:31 ) -> CallInfo[TResult]: 18:18:31 """Call func, wrapping the result in a CallInfo. 18:18:31 18:18:31 :param func: 18:18:31 The function to call. Called without arguments. 18:18:31 :type func: Callable[[], _pytest.runner.TResult] 18:18:31 :param when: 18:18:31 The phase in which the function is called. 18:18:31 :param reraise: 18:18:31 Exception or exceptions that shall propagate if raised by the 18:18:31 function, instead of being wrapped in the CallInfo. 18:18:31 """ 18:18:31 excinfo = None 18:18:31 instant = timing.Instant() 18:18:31 try: 18:18:31 > result: TResult | None = func() 18:18:31 ^^^^^^ 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:31 lambda: runtest_hook(item=item, **kwds), 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:31 yield 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:31 return (yield) 18:18:31 ^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:31 item.session._setupstate.setup(item) 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:31 col.setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:31 super().setup() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:31 self._request._fillfixtures() 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:31 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:31 fixturedef = self._get_active_fixturedef(argname) 18:18:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:31 fixturedef.execute(request=subrequest) 18:18:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:31 18:18:31 self = 18:18:31 request = > 18:18:31 18:18:31 def execute(self, request: SubRequest) -> FixtureValue: 18:18:31 """Return the value of this fixture, executing it if not cached.""" 18:18:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:31 # This needs to be done before checking if we have a cached value, since 18:18:31 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:31 # parametrization, they finalize themselves and fixtures depending on it 18:18:31 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:31 # See #4871 18:18:31 requested_fixtures_that_should_finalize_us = [] 18:18:31 for argname in self.argnames: 18:18:31 fixturedef = request._get_active_fixturedef(argname) 18:18:31 # Saves requested fixtures in a list so we later can add our finalizer 18:18:31 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:31 # down first. This is generally handled by SetupState, but still currently 18:18:31 # needed when this fixture is not parametrized but depends on a parametrized 18:18:31 # fixture. 18:18:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:31 18:18:31 # Check for (and return) cached value/exception. 18:18:31 if self.cached_result is not None: 18:18:31 request_cache_key = self.cache_key(request) 18:18:31 cache_key = self.cached_result[1] 18:18:31 try: 18:18:31 # Attempt to make a normal == check: this might fail for objects 18:18:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:31 cache_hit = bool(request_cache_key == cache_key) 18:18:31 except (ValueError, RuntimeError): 18:18:31 # If the comparison raises, use 'is' as fallback. 18:18:31 cache_hit = request_cache_key is cache_key 18:18:31 18:18:31 if cache_hit: 18:18:31 if self.cached_result[2] is not None: 18:18:31 exc, exc_tb = self.cached_result[2] 18:18:31 raise exc.with_traceback(exc_tb) 18:18:31 else: 18:18:31 return self.cached_result[0] 18:18:31 # We have a previous but differently parametrized fixture instance 18:18:31 # so we need to tear it down before creating a new one. 18:18:31 self.finish(request) 18:18:31 assert self.cached_result is None 18:18:31 18:18:31 # Add finalizer to requested fixtures we saved previously. 18:18:31 # We make sure to do this after checking for cached value to avoid 18:18:31 # adding our finalizer multiple times. (#12135) 18:18:31 finalizer = functools.partial(self.finish, request=request) 18:18:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:31 parent_fixture.addfinalizer(finalizer) 18:18:31 18:18:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:31 # which is executed last. 18:18:31 > assert not self._finalizers 18:18:31 ^^^^^^^^^^^^^^^^^^^^ 18:18:31 E AssertionError 18:18:31 18:18:31 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:31 =========================== short test summary info ============================ 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 18:18:31 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 18:18:31 10 errors in 101.99s (0:01:41) 18:18:31 tests190: exit 1 (102.27 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc pid=4129 18:18:31 EEtests190: FAIL ✖ in 1 minute 51.78 seconds 18:18:31 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:18:31 EEEEEEEEEEEEEEEEEEEEE [100%] 18:18:33 ==================================== ERRORS ==================================== 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 18:18:33 18:18:33 cls = 18:18:33 18:18:33 @classmethod 18:18:33 def setUpClass(cls): 18:18:33 > cls.processes = test_utils.start_tpce() 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 18:18:33 transportpce_tests/1.2.1/test01_portmapping.py:33: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 def start_tpce(): 18:18:33 if 'NO_ODL_STARTUP' in os.environ: 18:18:33 print('No OpenDaylight instance to start!') 18:18:33 return [] 18:18:33 print('starting OpenDaylight...') 18:18:33 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 18:18:33 process = start_lighty() 18:18:33 else: 18:18:33 process = start_karaf() 18:18:33 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 18:18:33 print('OpenDaylight started !') 18:18:33 else: 18:18:33 print('OpenDaylight failed to start !') 18:18:33 shutdown_process(process) 18:18:33 for pid in process_list: 18:18:33 shutdown_process(pid) 18:18:33 > sys.exit(1) 18:18:33 E SystemExit: 1 18:18:33 18:18:33 transportpce_tests/common/test_utils.py:232: SystemExit 18:18:33 ---------------------------- Captured stdout setup ----------------------------- 18:18:33 starting OpenDaylight... 18:18:33 starting KARAF (karaf121) TransportPCE build... 18:18:33 Pattern not found after 100 seconds! OpenDaylight failed to start ! 18:18:33 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089ad760> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b7560> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f590b433740> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f5909a63560> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089ad3a0> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089ad580> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b7600> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b68e0> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b6de0> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b7600> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b6f20> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089ad580> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b6de0> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b6f20> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089ad800> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089adbc0> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089adda0> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59082b6840> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f5907e89d00> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 18:18:33 18:18:33 cls = 18:18:33 func = . at 0x7f59089adbc0> 18:18:33 when = 'setup' 18:18:33 reraise = (, ) 18:18:33 18:18:33 @classmethod 18:18:33 def from_call( 18:18:33 cls, 18:18:33 func: Callable[[], TResult], 18:18:33 when: Literal["collect", "setup", "call", "teardown"], 18:18:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:33 ) -> CallInfo[TResult]: 18:18:33 """Call func, wrapping the result in a CallInfo. 18:18:33 18:18:33 :param func: 18:18:33 The function to call. Called without arguments. 18:18:33 :type func: Callable[[], _pytest.runner.TResult] 18:18:33 :param when: 18:18:33 The phase in which the function is called. 18:18:33 :param reraise: 18:18:33 Exception or exceptions that shall propagate if raised by the 18:18:33 function, instead of being wrapped in the CallInfo. 18:18:33 """ 18:18:33 excinfo = None 18:18:33 instant = timing.Instant() 18:18:33 try: 18:18:33 > result: TResult | None = func() 18:18:33 ^^^^^^ 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:33 lambda: runtest_hook(item=item, **kwds), 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:33 yield 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:33 return (yield) 18:18:33 ^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:33 item.session._setupstate.setup(item) 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:33 col.setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:33 super().setup() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:33 self._request._fillfixtures() 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:33 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:33 fixturedef = self._get_active_fixturedef(argname) 18:18:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:33 fixturedef.execute(request=subrequest) 18:18:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:33 18:18:33 self = 18:18:33 request = > 18:18:33 18:18:33 def execute(self, request: SubRequest) -> FixtureValue: 18:18:33 """Return the value of this fixture, executing it if not cached.""" 18:18:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:33 # This needs to be done before checking if we have a cached value, since 18:18:33 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:33 # parametrization, they finalize themselves and fixtures depending on it 18:18:33 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:33 # See #4871 18:18:33 requested_fixtures_that_should_finalize_us = [] 18:18:33 for argname in self.argnames: 18:18:33 fixturedef = request._get_active_fixturedef(argname) 18:18:33 # Saves requested fixtures in a list so we later can add our finalizer 18:18:33 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:33 # down first. This is generally handled by SetupState, but still currently 18:18:33 # needed when this fixture is not parametrized but depends on a parametrized 18:18:33 # fixture. 18:18:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:33 18:18:33 # Check for (and return) cached value/exception. 18:18:33 if self.cached_result is not None: 18:18:33 request_cache_key = self.cache_key(request) 18:18:33 cache_key = self.cached_result[1] 18:18:33 try: 18:18:33 # Attempt to make a normal == check: this might fail for objects 18:18:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:33 cache_hit = bool(request_cache_key == cache_key) 18:18:33 except (ValueError, RuntimeError): 18:18:33 # If the comparison raises, use 'is' as fallback. 18:18:33 cache_hit = request_cache_key is cache_key 18:18:33 18:18:33 if cache_hit: 18:18:33 if self.cached_result[2] is not None: 18:18:33 exc, exc_tb = self.cached_result[2] 18:18:33 raise exc.with_traceback(exc_tb) 18:18:33 else: 18:18:33 return self.cached_result[0] 18:18:33 # We have a previous but differently parametrized fixture instance 18:18:33 # so we need to tear it down before creating a new one. 18:18:33 self.finish(request) 18:18:33 assert self.cached_result is None 18:18:33 18:18:33 # Add finalizer to requested fixtures we saved previously. 18:18:33 # We make sure to do this after checking for cached value to avoid 18:18:33 # adding our finalizer multiple times. (#12135) 18:18:33 finalizer = functools.partial(self.finish, request=request) 18:18:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:33 parent_fixture.addfinalizer(finalizer) 18:18:33 18:18:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:33 # which is executed last. 18:18:33 > assert not self._finalizers 18:18:33 ^^^^^^^^^^^^^^^^^^^^ 18:18:33 E AssertionError 18:18:33 18:18:33 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:33 =========================== short test summary info ============================ 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 18:18:33 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 18:18:33 21 errors in 103.98s (0:01:43) 18:18:33 tests121: exit 1 (104.24 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 pid=4140 18:18:33 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 53.81 seconds 18:18:38 tests71: freeze> python -m pip freeze --all 18:18:38 Etests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 18:18:39 tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 18:18:39 using environment variables from ./karaf71.env 18:18:39 pytest -q transportpce_tests/7.1/test01_portmapping.py 18:18:39 EE [100%] 18:18:39 ==================================== ERRORS ==================================== 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 18:18:39 18:18:39 cls = 18:18:39 18:18:39 @classmethod 18:18:39 def setUpClass(cls): 18:18:39 cls.init_failed = False 18:18:39 os.environ['JAVA_MIN_MEM'] = '1024M' 18:18:39 os.environ['JAVA_MAX_MEM'] = '4096M' 18:18:39 > cls.processes = test_utils.start_tpce() 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 18:18:39 transportpce_tests/tapi/test01_abstracted_topology.py:148: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 def start_tpce(): 18:18:39 if 'NO_ODL_STARTUP' in os.environ: 18:18:39 print('No OpenDaylight instance to start!') 18:18:39 return [] 18:18:39 print('starting OpenDaylight...') 18:18:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 18:18:39 process = start_lighty() 18:18:39 else: 18:18:39 process = start_karaf() 18:18:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 18:18:39 print('OpenDaylight started !') 18:18:39 else: 18:18:39 print('OpenDaylight failed to start !') 18:18:39 shutdown_process(process) 18:18:39 for pid in process_list: 18:18:39 shutdown_process(pid) 18:18:39 > sys.exit(1) 18:18:39 E SystemExit: 1 18:18:39 18:18:39 transportpce_tests/common/test_utils.py:232: SystemExit 18:18:39 ---------------------------- Captured stdout setup ----------------------------- 18:18:39 starting OpenDaylight... 18:18:39 starting KARAF (karaf221) TransportPCE build... 18:18:39 Pattern not found after 100 seconds! OpenDaylight failed to start ! 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d29bc0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d734c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e84eb380> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e9423740> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d73560> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d73880> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d29bc0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d29bc0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72e80> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72660> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72d40> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72660> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6911a80> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d28e00> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6911c60> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d28e00> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6911f80> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e93d51c0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6911260> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e69113a0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6911120> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6912480> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6910900> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6912a20> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6910720> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6910ea0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6911a80> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6911260> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6912020> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e69114e0> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6d72700> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 18:18:39 18:18:39 cls = 18:18:39 func = . at 0x7f89e6913560> 18:18:39 when = 'setup' 18:18:39 reraise = (, ) 18:18:39 18:18:39 @classmethod 18:18:39 def from_call( 18:18:39 cls, 18:18:39 func: Callable[[], TResult], 18:18:39 when: Literal["collect", "setup", "call", "teardown"], 18:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:18:39 ) -> CallInfo[TResult]: 18:18:39 """Call func, wrapping the result in a CallInfo. 18:18:39 18:18:39 :param func: 18:18:39 The function to call. Called without arguments. 18:18:39 :type func: Callable[[], _pytest.runner.TResult] 18:18:39 :param when: 18:18:39 The phase in which the function is called. 18:18:39 :param reraise: 18:18:39 Exception or exceptions that shall propagate if raised by the 18:18:39 function, instead of being wrapped in the CallInfo. 18:18:39 """ 18:18:39 excinfo = None 18:18:39 instant = timing.Instant() 18:18:39 try: 18:18:39 > result: TResult | None = func() 18:18:39 ^^^^^^ 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:18:39 lambda: runtest_hook(item=item, **kwds), 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:18:39 yield 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:18:39 return (yield) 18:18:39 ^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:18:39 item.session._setupstate.setup(item) 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:18:39 col.setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:18:39 super().setup() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:18:39 self._request._fillfixtures() 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:18:39 fixturedef = self._get_active_fixturedef(argname) 18:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:18:39 fixturedef.execute(request=subrequest) 18:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:18:39 18:18:39 self = 18:18:39 request = > 18:18:39 18:18:39 def execute(self, request: SubRequest) -> FixtureValue: 18:18:39 """Return the value of this fixture, executing it if not cached.""" 18:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:18:39 # This needs to be done before checking if we have a cached value, since 18:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 18:18:39 # parametrization, they finalize themselves and fixtures depending on it 18:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 18:18:39 # See #4871 18:18:39 requested_fixtures_that_should_finalize_us = [] 18:18:39 for argname in self.argnames: 18:18:39 fixturedef = request._get_active_fixturedef(argname) 18:18:39 # Saves requested fixtures in a list so we later can add our finalizer 18:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 18:18:39 # down first. This is generally handled by SetupState, but still currently 18:18:39 # needed when this fixture is not parametrized but depends on a parametrized 18:18:39 # fixture. 18:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:18:39 18:18:39 # Check for (and return) cached value/exception. 18:18:39 if self.cached_result is not None: 18:18:39 request_cache_key = self.cache_key(request) 18:18:39 cache_key = self.cached_result[1] 18:18:39 try: 18:18:39 # Attempt to make a normal == check: this might fail for objects 18:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:18:39 cache_hit = bool(request_cache_key == cache_key) 18:18:39 except (ValueError, RuntimeError): 18:18:39 # If the comparison raises, use 'is' as fallback. 18:18:39 cache_hit = request_cache_key is cache_key 18:18:39 18:18:39 if cache_hit: 18:18:39 if self.cached_result[2] is not None: 18:18:39 exc, exc_tb = self.cached_result[2] 18:18:39 raise exc.with_traceback(exc_tb) 18:18:39 else: 18:18:39 return self.cached_result[0] 18:18:39 # We have a previous but differently parametrized fixture instance 18:18:39 # so we need to tear it down before creating a new one. 18:18:39 self.finish(request) 18:18:39 assert self.cached_result is None 18:18:39 18:18:39 # Add finalizer to requested fixtures we saved previously. 18:18:39 # We make sure to do this after checking for cached value to avoid 18:18:39 # adding our finalizer multiple times. (#12135) 18:18:39 finalizer = functools.partial(self.finish, request=request) 18:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:18:39 parent_fixture.addfinalizer(finalizer) 18:18:39 18:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:18:39 # which is executed last. 18:18:39 > assert not self._finalizers 18:18:39 ^^^^^^^^^^^^^^^^^^^^ 18:18:39 E AssertionError 18:18:39 18:18:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:18:39 =========================== short test summary info ============================ 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 18:18:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 18:18:39 51 errors in 109.82s (0:01:49) 18:18:39 tests_tapi: exit 1 (110.11 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi pid=4151 18:18:39 tests_tapi: FAIL ✖ in 1 minute 59.81 seconds 18:18:39 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:18:45 tests221: freeze> python -m pip freeze --all 18:18: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 18:18:45 tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 18:18:45 using environment variables from ./karaf221.env 18:18:45 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 18:20:19 EEEEEEEEEEEE [100%] 18:20:21 ==================================== ERRORS ==================================== 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 18:20:21 18:20:21 cls = 18:20:21 18:20:21 @classmethod 18:20:21 def setUpClass(cls): 18:20:21 > cls.processes = test_utils.start_tpce() 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 18:20:21 transportpce_tests/7.1/test01_portmapping.py:32: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 def start_tpce(): 18:20:21 if 'NO_ODL_STARTUP' in os.environ: 18:20:21 print('No OpenDaylight instance to start!') 18:20:21 return [] 18:20:21 print('starting OpenDaylight...') 18:20:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 18:20:21 process = start_lighty() 18:20:21 else: 18:20:21 process = start_karaf() 18:20:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 18:20:21 print('OpenDaylight started !') 18:20:21 else: 18:20:21 print('OpenDaylight failed to start !') 18:20:21 shutdown_process(process) 18:20:21 for pid in process_list: 18:20:21 shutdown_process(pid) 18:20:21 > sys.exit(1) 18:20:21 E SystemExit: 1 18:20:21 18:20:21 transportpce_tests/common/test_utils.py:232: SystemExit 18:20:21 ---------------------------- Captured stdout setup ----------------------------- 18:20:21 starting OpenDaylight... 18:20:21 starting KARAF (karaf71) TransportPCE build... 18:20:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc284382700> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc2843a7740> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc286a9cea0> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc284382700> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc285b4fe20> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc284382700> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc2843a7600> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc2843a5d00> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc2843a7920> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc2843a77e0> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 18:20:21 18:20:21 cls = 18:20:21 func = . at 0x7fc284382700> 18:20:21 when = 'setup' 18:20:21 reraise = (, ) 18:20:21 18:20:21 @classmethod 18:20:21 def from_call( 18:20:21 cls, 18:20:21 func: Callable[[], TResult], 18:20:21 when: Literal["collect", "setup", "call", "teardown"], 18:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:21 ) -> CallInfo[TResult]: 18:20:21 """Call func, wrapping the result in a CallInfo. 18:20:21 18:20:21 :param func: 18:20:21 The function to call. Called without arguments. 18:20:21 :type func: Callable[[], _pytest.runner.TResult] 18:20:21 :param when: 18:20:21 The phase in which the function is called. 18:20:21 :param reraise: 18:20:21 Exception or exceptions that shall propagate if raised by the 18:20:21 function, instead of being wrapped in the CallInfo. 18:20:21 """ 18:20:21 excinfo = None 18:20:21 instant = timing.Instant() 18:20:21 try: 18:20:21 > result: TResult | None = func() 18:20:21 ^^^^^^ 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:21 lambda: runtest_hook(item=item, **kwds), 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:21 yield 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:21 return (yield) 18:20:21 ^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:21 item.session._setupstate.setup(item) 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:21 col.setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:21 super().setup() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:21 self._request._fillfixtures() 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:21 fixturedef = self._get_active_fixturedef(argname) 18:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:21 fixturedef.execute(request=subrequest) 18:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:21 18:20:21 self = 18:20:21 request = > 18:20:21 18:20:21 def execute(self, request: SubRequest) -> FixtureValue: 18:20:21 """Return the value of this fixture, executing it if not cached.""" 18:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:21 # This needs to be done before checking if we have a cached value, since 18:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:21 # parametrization, they finalize themselves and fixtures depending on it 18:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:21 # See #4871 18:20:21 requested_fixtures_that_should_finalize_us = [] 18:20:21 for argname in self.argnames: 18:20:21 fixturedef = request._get_active_fixturedef(argname) 18:20:21 # Saves requested fixtures in a list so we later can add our finalizer 18:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:21 # down first. This is generally handled by SetupState, but still currently 18:20:21 # needed when this fixture is not parametrized but depends on a parametrized 18:20:21 # fixture. 18:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:21 18:20:21 # Check for (and return) cached value/exception. 18:20:21 if self.cached_result is not None: 18:20:21 request_cache_key = self.cache_key(request) 18:20:21 cache_key = self.cached_result[1] 18:20:21 try: 18:20:21 # Attempt to make a normal == check: this might fail for objects 18:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:21 cache_hit = bool(request_cache_key == cache_key) 18:20:21 except (ValueError, RuntimeError): 18:20:21 # If the comparison raises, use 'is' as fallback. 18:20:21 cache_hit = request_cache_key is cache_key 18:20:21 18:20:21 if cache_hit: 18:20:21 if self.cached_result[2] is not None: 18:20:21 exc, exc_tb = self.cached_result[2] 18:20:21 raise exc.with_traceback(exc_tb) 18:20:21 else: 18:20:21 return self.cached_result[0] 18:20:21 # We have a previous but differently parametrized fixture instance 18:20:21 # so we need to tear it down before creating a new one. 18:20:21 self.finish(request) 18:20:21 assert self.cached_result is None 18:20:21 18:20:21 # Add finalizer to requested fixtures we saved previously. 18:20:21 # We make sure to do this after checking for cached value to avoid 18:20:21 # adding our finalizer multiple times. (#12135) 18:20:21 finalizer = functools.partial(self.finish, request=request) 18:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:21 parent_fixture.addfinalizer(finalizer) 18:20:21 18:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:21 # which is executed last. 18:20:21 > assert not self._finalizers 18:20:21 ^^^^^^^^^^^^^^^^^^^^ 18:20:21 E AssertionError 18:20:21 18:20:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:21 =========================== short test summary info ============================ 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 18:20:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 18:20:21 12 errors in 102.27s (0:01:42) 18:20:21 tests71: exit 1 (102.58 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 pid=4297 18:20:26 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 18:20:32 ==================================== ERRORS ==================================== 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 18:20:32 18:20:32 cls = 18:20:32 18:20:32 @classmethod 18:20:32 def setUpClass(cls): 18:20:32 > cls.processes = test_utils.start_tpce() 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 18:20:32 transportpce_tests/2.2.1/test01_portmapping.py:33: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 def start_tpce(): 18:20:32 if 'NO_ODL_STARTUP' in os.environ: 18:20:32 print('No OpenDaylight instance to start!') 18:20:32 return [] 18:20:32 print('starting OpenDaylight...') 18:20:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 18:20:32 process = start_lighty() 18:20:32 else: 18:20:32 process = start_karaf() 18:20:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 18:20:32 print('OpenDaylight started !') 18:20:32 else: 18:20:32 print('OpenDaylight failed to start !') 18:20:32 shutdown_process(process) 18:20:32 for pid in process_list: 18:20:32 shutdown_process(pid) 18:20:32 > sys.exit(1) 18:20:32 E SystemExit: 1 18:20:32 18:20:32 transportpce_tests/common/test_utils.py:232: SystemExit 18:20:32 ---------------------------- Captured stdout setup ----------------------------- 18:20:32 starting OpenDaylight... 18:20:32 starting KARAF (karaf221) TransportPCE build... 18:20:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 18:20:32 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce833560> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce14fec0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41cf8e6a20> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41d082c4a0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1aaca0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce14fec0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41cf8e6a20> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1a8cc0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce8336a0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce14fec0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1a8360> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce8336a0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1ab9c0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1ab880> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832020> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832020> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1abb00> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1a8b80> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1abc40> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1ab880> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1a8360> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1ab1a0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1ab100> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1aa5c0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1aaca0> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce1ab740> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 18:20:32 18:20:32 cls = 18:20:32 func = . at 0x7f41ce832340> 18:20:32 when = 'setup' 18:20:32 reraise = (, ) 18:20:32 18:20:32 @classmethod 18:20:32 def from_call( 18:20:32 cls, 18:20:32 func: Callable[[], TResult], 18:20:32 when: Literal["collect", "setup", "call", "teardown"], 18:20:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:20:32 ) -> CallInfo[TResult]: 18:20:32 """Call func, wrapping the result in a CallInfo. 18:20:32 18:20:32 :param func: 18:20:32 The function to call. Called without arguments. 18:20:32 :type func: Callable[[], _pytest.runner.TResult] 18:20:32 :param when: 18:20:32 The phase in which the function is called. 18:20:32 :param reraise: 18:20:32 Exception or exceptions that shall propagate if raised by the 18:20:32 function, instead of being wrapped in the CallInfo. 18:20:32 """ 18:20:32 excinfo = None 18:20:32 instant = timing.Instant() 18:20:32 try: 18:20:32 > result: TResult | None = func() 18:20:32 ^^^^^^ 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:20:32 lambda: runtest_hook(item=item, **kwds), 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:20:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:20:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:20:32 yield 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:20:32 return (yield) 18:20:32 ^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:20:32 item.session._setupstate.setup(item) 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:20:32 col.setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:20:32 super().setup() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:20:32 self._request._fillfixtures() 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:20:32 item.funcargs[argname] = self.getfixturevalue(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:20:32 fixturedef = self._get_active_fixturedef(argname) 18:20:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:20:32 fixturedef.execute(request=subrequest) 18:20:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:20:32 18:20:32 self = 18:20:32 request = > 18:20:32 18:20:32 def execute(self, request: SubRequest) -> FixtureValue: 18:20:32 """Return the value of this fixture, executing it if not cached.""" 18:20:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:20:32 # This needs to be done before checking if we have a cached value, since 18:20:32 # if a dependent fixture has their cache invalidated, e.g. due to 18:20:32 # parametrization, they finalize themselves and fixtures depending on it 18:20:32 # (which will likely include this fixture) setting `self.cached_result = None`. 18:20:32 # See #4871 18:20:32 requested_fixtures_that_should_finalize_us = [] 18:20:32 for argname in self.argnames: 18:20:32 fixturedef = request._get_active_fixturedef(argname) 18:20:32 # Saves requested fixtures in a list so we later can add our finalizer 18:20:32 # to them, ensuring that if a requested fixture gets torn down we get torn 18:20:32 # down first. This is generally handled by SetupState, but still currently 18:20:32 # needed when this fixture is not parametrized but depends on a parametrized 18:20:32 # fixture. 18:20:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:20:32 18:20:32 # Check for (and return) cached value/exception. 18:20:32 if self.cached_result is not None: 18:20:32 request_cache_key = self.cache_key(request) 18:20:32 cache_key = self.cached_result[1] 18:20:32 try: 18:20:32 # Attempt to make a normal == check: this might fail for objects 18:20:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:20:32 cache_hit = bool(request_cache_key == cache_key) 18:20:32 except (ValueError, RuntimeError): 18:20:32 # If the comparison raises, use 'is' as fallback. 18:20:32 cache_hit = request_cache_key is cache_key 18:20:32 18:20:32 if cache_hit: 18:20:32 if self.cached_result[2] is not None: 18:20:32 exc, exc_tb = self.cached_result[2] 18:20:32 raise exc.with_traceback(exc_tb) 18:20:32 else: 18:20:32 return self.cached_result[0] 18:20:32 # We have a previous but differently parametrized fixture instance 18:20:32 # so we need to tear it down before creating a new one. 18:20:32 self.finish(request) 18:20:32 assert self.cached_result is None 18:20:32 18:20:32 # Add finalizer to requested fixtures we saved previously. 18:20:32 # We make sure to do this after checking for cached value to avoid 18:20:32 # adding our finalizer multiple times. (#12135) 18:20:32 finalizer = functools.partial(self.finish, request=request) 18:20:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:20:32 parent_fixture.addfinalizer(finalizer) 18:20:32 18:20:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:20:32 # which is executed last. 18:20:32 > assert not self._finalizers 18:20:32 ^^^^^^^^^^^^^^^^^^^^ 18:20:32 E AssertionError 18:20:32 18:20:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:20:32 =========================== short test summary info ============================ 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 18:20:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 18:20:32 35 errors in 106.36s (0:01:46) 18:20:32 tests71: FAIL ✖ in 1 minute 50.42 seconds 18:20:32 tests221: exit 1 (106.62 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 pid=4367 18:20:32 tests221: FAIL ✖ in 1 minute 52.92 seconds 18:20:32 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 18:20:39 tests_hybrid: freeze> python -m pip freeze --all 18:20:39 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 18:20:39 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid 18:20:39 using environment variables from ./karaf221.env 18:20:39 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 18:22:20 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 18:22:29 ==================================== ERRORS ==================================== 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 18:22:29 18:22:29 cls = 18:22:29 18:22:29 @classmethod 18:22:29 def setUpClass(cls): 18:22:29 > cls.processes = test_utils.start_tpce() 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 18:22:29 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 def start_tpce(): 18:22:29 if 'NO_ODL_STARTUP' in os.environ: 18:22:29 print('No OpenDaylight instance to start!') 18:22:29 return [] 18:22:29 print('starting OpenDaylight...') 18:22:29 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 18:22:29 process = start_lighty() 18:22:29 else: 18:22:29 process = start_karaf() 18:22:29 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 18:22:29 print('OpenDaylight started !') 18:22:29 else: 18:22:29 print('OpenDaylight failed to start !') 18:22:29 shutdown_process(process) 18:22:29 for pid in process_list: 18:22:29 shutdown_process(pid) 18:22:29 > sys.exit(1) 18:22:29 E SystemExit: 1 18:22:29 18:22:29 transportpce_tests/common/test_utils.py:232: SystemExit 18:22:29 ---------------------------- Captured stdout setup ----------------------------- 18:22:29 starting OpenDaylight... 18:22:29 starting KARAF (karaf221) TransportPCE build... 18:22:29 Pattern not found after 100 seconds! OpenDaylight failed to start ! 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea0e3e0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66ac0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb7017e7a0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea0fba0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea0ff60> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea0fba0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea663e0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8360> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb710c18a0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea0ff60> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67420> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8040> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb710c18a0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67880> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb710c18a0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8220> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67880> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb710c18a0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8220> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8220> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea64040> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea64040> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66660> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66de0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66ca0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67d80> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea676a0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67c40> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67600> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67740> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67d80> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66ca0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea64040> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67740> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea67880> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66660> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66b60> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea66de0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6e9c8400> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 18:22:29 18:22:29 cls = 18:22:29 func = . at 0x7fdb6ea663e0> 18:22:29 when = 'setup' 18:22:29 reraise = (, ) 18:22:29 18:22:29 @classmethod 18:22:29 def from_call( 18:22:29 cls, 18:22:29 func: Callable[[], TResult], 18:22:29 when: Literal["collect", "setup", "call", "teardown"], 18:22:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 18:22:29 ) -> CallInfo[TResult]: 18:22:29 """Call func, wrapping the result in a CallInfo. 18:22:29 18:22:29 :param func: 18:22:29 The function to call. Called without arguments. 18:22:29 :type func: Callable[[], _pytest.runner.TResult] 18:22:29 :param when: 18:22:29 The phase in which the function is called. 18:22:29 :param reraise: 18:22:29 Exception or exceptions that shall propagate if raised by the 18:22:29 function, instead of being wrapped in the CallInfo. 18:22:29 """ 18:22:29 excinfo = None 18:22:29 instant = timing.Instant() 18:22:29 try: 18:22:29 > result: TResult | None = func() 18:22:29 ^^^^^^ 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 18:22:29 lambda: runtest_hook(item=item, **kwds), 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 18:22:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 18:22:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 18:22:29 yield 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 18:22:29 return (yield) 18:22:29 ^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 18:22:29 item.session._setupstate.setup(item) 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 18:22:29 col.setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 18:22:29 super().setup() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 18:22:29 self._request._fillfixtures() 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 18:22:29 item.funcargs[argname] = self.getfixturevalue(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 18:22:29 fixturedef = self._get_active_fixturedef(argname) 18:22:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 18:22:29 fixturedef.execute(request=subrequest) 18:22:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18:22:29 18:22:29 self = 18:22:29 request = > 18:22:29 18:22:29 def execute(self, request: SubRequest) -> FixtureValue: 18:22:29 """Return the value of this fixture, executing it if not cached.""" 18:22:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 18:22:29 # This needs to be done before checking if we have a cached value, since 18:22:29 # if a dependent fixture has their cache invalidated, e.g. due to 18:22:29 # parametrization, they finalize themselves and fixtures depending on it 18:22:29 # (which will likely include this fixture) setting `self.cached_result = None`. 18:22:29 # See #4871 18:22:29 requested_fixtures_that_should_finalize_us = [] 18:22:29 for argname in self.argnames: 18:22:29 fixturedef = request._get_active_fixturedef(argname) 18:22:29 # Saves requested fixtures in a list so we later can add our finalizer 18:22:29 # to them, ensuring that if a requested fixture gets torn down we get torn 18:22:29 # down first. This is generally handled by SetupState, but still currently 18:22:29 # needed when this fixture is not parametrized but depends on a parametrized 18:22:29 # fixture. 18:22:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 18:22:29 18:22:29 # Check for (and return) cached value/exception. 18:22:29 if self.cached_result is not None: 18:22:29 request_cache_key = self.cache_key(request) 18:22:29 cache_key = self.cached_result[1] 18:22:29 try: 18:22:29 # Attempt to make a normal == check: this might fail for objects 18:22:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 18:22:29 cache_hit = bool(request_cache_key == cache_key) 18:22:29 except (ValueError, RuntimeError): 18:22:29 # If the comparison raises, use 'is' as fallback. 18:22:29 cache_hit = request_cache_key is cache_key 18:22:29 18:22:29 if cache_hit: 18:22:29 if self.cached_result[2] is not None: 18:22:29 exc, exc_tb = self.cached_result[2] 18:22:29 raise exc.with_traceback(exc_tb) 18:22:29 else: 18:22:29 return self.cached_result[0] 18:22:29 # We have a previous but differently parametrized fixture instance 18:22:29 # so we need to tear it down before creating a new one. 18:22:29 self.finish(request) 18:22:29 assert self.cached_result is None 18:22:29 18:22:29 # Add finalizer to requested fixtures we saved previously. 18:22:29 # We make sure to do this after checking for cached value to avoid 18:22:29 # adding our finalizer multiple times. (#12135) 18:22:29 finalizer = functools.partial(self.finish, request=request) 18:22:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 18:22:29 parent_fixture.addfinalizer(finalizer) 18:22:29 18:22:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 18:22:29 # which is executed last. 18:22:29 > assert not self._finalizers 18:22:29 ^^^^^^^^^^^^^^^^^^^^ 18:22:29 E AssertionError 18:22:29 18:22:29 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 18:22:29 =========================== short test summary info ============================ 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 18:22:29 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 18:22:29 51 errors in 109.51s (0:01:49) 18:22:29 tests_hybrid: exit 1 (109.76 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid pid=4490 18:22:29 buildcontroller: FAIL code 1 (21.44=setup[8.93]+cmd[12.51] seconds) 18:22:29 sims: OK (10.01=setup[6.83]+cmd[3.17] seconds) 18:22:29 build_karaf_tests121: FAIL code 127 (15.85=setup[6.81]+cmd[9.04] seconds) 18:22:29 testsPCE: FAIL code 1 (172.96=setup[48.87]+cmd[124.09] seconds) 18:22:29 tests121: FAIL code 1 (113.81=setup[9.57]+cmd[104.24] seconds) 18:22:29 build_karaf_tests221: FAIL code 127 (15.83=setup[6.81]+cmd[9.02] seconds) 18:22:29 tests_tapi: FAIL code 1 (119.81=setup[9.71]+cmd[110.11] seconds) 18:22:29 tests221: FAIL code 1 (112.92=setup[6.30]+cmd[106.62] seconds) 18:22:29 build_karaf_tests71: FAIL code 127 (13.59=setup[8.27]+cmd[5.31] seconds) 18:22:29 tests71: FAIL code 1 (110.42=setup[7.84]+cmd[102.58] seconds) 18:22:29 build_karaf_tests190: FAIL code 127 (14.15=setup[8.85]+cmd[5.30] seconds) 18:22:29 tests190: FAIL code 1 (111.78=setup[9.51]+cmd[102.27] seconds) 18:22:29 tests_hybrid: FAIL code 1 (117.42=setup[7.65]+cmd[109.76] seconds) 18:22:29 buildlighty: FAIL code 9 (22.20=setup[7.45]+cmd[14.75] seconds) 18:22:29 docs: OK (19.00=setup[15.90]+cmd[3.10] seconds) 18:22:29 docs-linkcheck: OK (21.47=setup[15.95]+cmd[5.52] seconds) 18:22:29 checkbashisms: OK (3.03=setup[1.85]+cmd[0.01,0.04,1.14] seconds) 18:22:29 pre-commit: OK (50.69=setup[2.87]+cmd[0.01,0.01,39.76,8.04] seconds) 18:22:29 pylint: OK (30.09=setup[3.74]+cmd[26.35] seconds) 18:22:29 evaluation failed :( (574.61 seconds) 18:22:29 + tox_status=1 18:22:29 + echo '---> Completed tox runs' 18:22:29 ---> Completed tox runs 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/build_karaf_tests121/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=build_karaf_tests121 18:22:29 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests121 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/build_karaf_tests190/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=build_karaf_tests190 18:22:29 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests190 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/build_karaf_tests221/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=build_karaf_tests221 18:22:29 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests221 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/build_karaf_tests71/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=build_karaf_tests71 18:22:29 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests71 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/buildcontroller/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=buildcontroller 18:22:29 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildcontroller 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/buildlighty/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=buildlighty 18:22:29 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildlighty 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/checkbashisms/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=checkbashisms 18:22:29 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/checkbashisms 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/docs-linkcheck/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=docs-linkcheck 18:22:29 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs-linkcheck 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/docs/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=docs 18:22:29 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/pre-commit/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=pre-commit 18:22:29 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pre-commit 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/pylint/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=pylint 18:22:29 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pylint 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/sims/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=sims 18:22:29 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/sims 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/tests121/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=tests121 18:22:29 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests121 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/tests190/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=tests190 18:22:29 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests190 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/tests221/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=tests221 18:22:29 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests221 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/tests71/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=tests71 18:22:29 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests71 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/testsPCE/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=testsPCE 18:22:29 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/testsPCE 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/tests_hybrid/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=tests_hybrid 18:22:29 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_hybrid 18:22:29 + for i in .tox/*/log 18:22:29 ++ echo .tox/tests_tapi/log 18:22:29 ++ awk -F/ '{print $2}' 18:22:29 + tox_env=tests_tapi 18:22:29 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_tapi 18:22:29 + DOC_DIR=docs/_build/html 18:22:29 + [[ -d docs/_build/html ]] 18:22:29 + echo '---> Archiving generated docs' 18:22:29 ---> Archiving generated docs 18:22:29 + mv docs/_build/html /w/workspace/transportpce-tox-verify-titanium/archives/docs 18:22:29 + echo '---> tox-run.sh ends' 18:22:29 ---> tox-run.sh ends 18:22:29 + test 1 -eq 0 18:22:29 + exit 1 18:22:29 ++ '[' 1 = 1 ']' 18:22:29 ++ '[' -x /usr/bin/clear_console ']' 18:22:29 ++ /usr/bin/clear_console -q 18:22:29 Build step 'Execute shell' marked build as failure 18:22:29 $ ssh-agent -k 18:22:29 unset SSH_AUTH_SOCK; 18:22:29 unset SSH_AGENT_PID; 18:22:29 echo Agent pid 1558 killed; 18:22:29 [ssh-agent] Stopped. 18:22:29 [PostBuildScript] - [INFO] Executing post build scripts. 18:22:29 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins10816924988185491134.sh 18:22:29 ---> sysstat.sh 18:22:30 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins1140046562795262681.sh 18:22:30 ---> package-listing.sh 18:22:30 ++ facter osfamily 18:22:30 ++ tr '[:upper:]' '[:lower:]' 18:22:30 + OS_FAMILY=debian 18:22:30 + workspace=/w/workspace/transportpce-tox-verify-titanium 18:22:30 + START_PACKAGES=/tmp/packages_start.txt 18:22:30 + END_PACKAGES=/tmp/packages_end.txt 18:22:30 + DIFF_PACKAGES=/tmp/packages_diff.txt 18:22:30 + PACKAGES=/tmp/packages_start.txt 18:22:30 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 18:22:30 + PACKAGES=/tmp/packages_end.txt 18:22:30 + case "${OS_FAMILY}" in 18:22:30 + dpkg -l 18:22:30 + grep '^ii' 18:22:30 + '[' -f /tmp/packages_start.txt ']' 18:22:30 + '[' -f /tmp/packages_end.txt ']' 18:22:30 + diff /tmp/packages_start.txt /tmp/packages_end.txt 18:22:30 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 18:22:30 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/ 18:22:30 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-titanium/archives/ 18:22:30 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins12996471491710547170.sh 18:22:30 ---> capture-instance-metadata.sh 18:22:30 Setup pyenv: 18:22:30 system 18:22:30 3.8.20 18:22:30 3.9.20 18:22:30 3.10.15 18:22:30 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 18:22:31 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-1Qla from file:/tmp/.os_lf_venv 18:22:31 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 18:22:32 lf-activate-venv(): INFO: Installing additional packages: lftools 18:22:46 lf-activate-venv(): INFO: Adding /tmp/venv-1Qla/bin to PATH 18:22:46 INFO: Running in OpenStack, capturing instance metadata 18:22:46 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins9367750519307816957.sh 18:22:46 provisioning config files... 18:22:46 Could not find credentials [logs] for transportpce-tox-verify-titanium #45 18:22:46 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-titanium@tmp/config1496619525375936123tmp 18:22:46 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 18:22:46 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 18:22:46 provisioning config files... 18:22:47 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 18:22:47 [EnvInject] - Injecting environment variables from a build step. 18:22:47 [EnvInject] - Injecting as environment variables the properties content 18:22:47 SERVER_ID=logs 18:22:47 18:22:47 [EnvInject] - Variables injected successfully. 18:22:47 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins14333911976509935234.sh 18:22:47 ---> create-netrc.sh 18:22:47 WARN: Log server credential not found. 18:22:47 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins12211213932229098239.sh 18:22:47 ---> python-tools-install.sh 18:22:47 Setup pyenv: 18:22:47 system 18:22:47 3.8.20 18:22:47 3.9.20 18:22:47 3.10.15 18:22:47 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 18:22:47 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-1Qla from file:/tmp/.os_lf_venv 18:22:47 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 18:22:49 lf-activate-venv(): INFO: Installing additional packages: lftools 18:22:57 lf-activate-venv(): INFO: Adding /tmp/venv-1Qla/bin to PATH 18:22:57 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins16670748016385312105.sh 18:22:57 ---> uv-install.sh 18:22:57 uv 0.12.9 is already installed 18:22:57 uvx 0.12.9 (x86_64-unknown-linux-gnu) 18:22:58 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins12499340237931300212.sh 18:22:58 ---> sudo-logs.sh 18:22:58 Archiving 'sudo' log.. 18:22:58 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins16882168369054820150.sh 18:22:58 ---> job-cost.sh 18:22:58 INFO: Activating Python virtual environment... 18:22:58 Setup pyenv: 18:22:58 system 18:22:58 3.8.20 18:22:58 3.9.20 18:22:58 3.10.15 18:22:58 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 18:22:58 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-1Qla from file:/tmp/.os_lf_venv 18:22:58 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 18:23:00 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 18:23:06 lf-activate-venv(): INFO: Adding /tmp/venv-1Qla/bin to PATH 18:23:06 INFO: No stack-cost file found 18:23:06 INFO: Instance uptime: 743s 18:23:06 INFO: Fetching instance metadata (attempt 1 of 3)... 18:23:06 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 18:23:07 INFO: Successfully fetched instance metadata 18:23:07 INFO: Instance type: v3-standard-4 18:23:07 INFO: Retrieving pricing info for: v3-standard-4 18:23:07 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 18:23:07 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=743 18:23:07 INFO: Successfully fetched Vexxhost pricing API 18:23:07 INFO: Retrieved cost: 0.11 18:23:07 INFO: Retrieved resource: v3-standard-4 18:23:07 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-titanium/archives/cost 18:23:07 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-titanium/archives/cost.csv 18:23:07 INFO: Successfully archived job cost data 18:23:07 DEBUG: Cost data: transportpce-tox-verify-titanium,45,2026-09-02 18:23:07,v3-standard-4,743,0.11,0.00,FAILURE 18:23:07 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins11204298812821583796.sh 18:23:07 ---> logs-deploy.sh 18:23:07 Setup pyenv: 18:23:07 system 18:23:07 3.8.20 18:23:07 3.9.20 18:23:07 3.10.15 18:23:07 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 18:23:07 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-1Qla from file:/tmp/.os_lf_venv 18:23:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 18:23:09 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 18:23:18 lf-activate-venv(): INFO: Adding /tmp/venv-1Qla/bin to PATH 18:23:18 WARNING: Nexus logging server not set 18:23:18 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-titanium/45/ 18:23:18 INFO: archiving logs to S3 18:23:19 ---> uname -a: 18:23:19 Linux prd-ubuntu2204-docker-4c-16g-46910 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 18:23:19 18:23:19 18:23:19 ---> lscpu: 18:23:19 Architecture: x86_64 18:23:19 CPU op-mode(s): 32-bit, 64-bit 18:23:19 Address sizes: 40 bits physical, 48 bits virtual 18:23:19 Byte Order: Little Endian 18:23:19 CPU(s): 4 18:23:19 On-line CPU(s) list: 0-3 18:23:19 Vendor ID: AuthenticAMD 18:23:19 Model name: AMD EPYC-Rome Processor 18:23:19 CPU family: 23 18:23:19 Model: 49 18:23:19 Thread(s) per core: 1 18:23:19 Core(s) per socket: 1 18:23:19 Socket(s): 4 18:23:19 Stepping: 0 18:23:19 BogoMIPS: 5599.99 18:23:19 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 18:23:19 Virtualization: AMD-V 18:23:19 Hypervisor vendor: KVM 18:23:19 Virtualization type: full 18:23:19 L1d cache: 128 KiB (4 instances) 18:23:19 L1i cache: 128 KiB (4 instances) 18:23:19 L2 cache: 2 MiB (4 instances) 18:23:19 L3 cache: 64 MiB (4 instances) 18:23:19 NUMA node(s): 1 18:23:19 NUMA node0 CPU(s): 0-3 18:23:19 Vulnerability Gather data sampling: Not affected 18:23:19 Vulnerability Indirect target selection: Not affected 18:23:19 Vulnerability Itlb multihit: Not affected 18:23:19 Vulnerability L1tf: Not affected 18:23:19 Vulnerability Mds: Not affected 18:23:19 Vulnerability Meltdown: Not affected 18:23:19 Vulnerability Mmio stale data: Not affected 18:23:19 Vulnerability Reg file data sampling: Not affected 18:23:19 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 18:23:19 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 18:23:19 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 18:23:19 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 18:23:19 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 18:23:19 Vulnerability Srbds: Not affected 18:23:19 Vulnerability Tsa: Not affected 18:23:19 Vulnerability Tsx async abort: Not affected 18:23:19 Vulnerability Vmscape: Not affected 18:23:19 18:23:19 18:23:19 ---> nproc: 18:23:19 4 18:23:19 18:23:19 18:23:19 ---> df -h: 18:23:19 Filesystem Size Used Avail Use% Mounted on 18:23:19 tmpfs 1.6G 1.1M 1.6G 1% /run 18:23:19 /dev/vda1 78G 12G 67G 15% / 18:23:19 tmpfs 7.9G 0 7.9G 0% /dev/shm 18:23:19 tmpfs 5.0M 0 5.0M 0% /run/lock 18:23:19 /dev/vda15 105M 6.1M 99M 6% /boot/efi 18:23:19 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 18:23:19 18:23:19 18:23:19 ---> free -m: 18:23:19 total used free shared buff/cache available 18:23:19 Mem: 15989 696 9662 4 5630 14949 18:23:19 Swap: 1023 0 1023 18:23:19 18:23:19 18:23:19 ---> ip addr: 18:23:19 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 18:23:19 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 18:23:19 inet 127.0.0.1/8 scope host lo 18:23:19 valid_lft forever preferred_lft forever 18:23:19 inet6 ::1/128 scope host 18:23:19 valid_lft forever preferred_lft forever 18:23:19 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 18:23:19 link/ether fa:16:3e:ce:86:dc brd ff:ff:ff:ff:ff:ff 18:23:19 altname enp0s3 18:23:19 inet 10.30.170.149/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 18:23:19 valid_lft 85654sec preferred_lft 85654sec 18:23:19 inet6 fe80::f816:3eff:fece:86dc/64 scope link 18:23:19 valid_lft forever preferred_lft forever 18:23:19 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 18:23:19 link/ether 92:0d:59:ed:bd:e5 brd ff:ff:ff:ff:ff:ff 18:23:19 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 18:23:19 valid_lft forever preferred_lft forever 18:23:19 18:23:19 18:23:19 ---> sar -b -r -n DEV: 18:23:19 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-46910) 09/02/26 _x86_64_ (4 CPU) 18:23:19 18:23:19 18:10:56 LINUX RESTART (4 CPU) 18:23:19 18:23:19 18:23:19 ---> sar -P ALL: 18:23:19 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-46910) 09/02/26 _x86_64_ (4 CPU) 18:23:19 18:23:19 18:10:56 LINUX RESTART (4 CPU) 18:23:19 18:23:19 18:23:19