16:36:48 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125699 16:36:48 Running as SYSTEM 16:36:48 [EnvInject] - Loading node environment variables. 16:36:48 Building remotely on prd-ubuntu2204-docker-4c-16g-46902 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-titanium 16:36:49 [ssh-agent] Looking for ssh-agent implementation... 16:36:49 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:36:49 $ ssh-agent 16:36:49 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXnH4oJe/agent.1889 16:36:49 SSH_AGENT_PID=1891 16:36:49 [ssh-agent] Started. 16:36:49 Running ssh-add (command line suppressed) 16:36:49 Identity added: /w/workspace/transportpce-tox-verify-titanium@tmp/private_key_11590696151994723263.key (/w/workspace/transportpce-tox-verify-titanium@tmp/private_key_11590696151994723263.key) 16:36:49 [ssh-agent] Using credentials jenkins (jenkins-ssh) 16:36:49 The recommended git tool is: NONE 16:36:51 using credential jenkins-ssh 16:36:51 Wiping out workspace first. 16:36:51 Cloning the remote Git repository 16:36:51 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 16:36:51 > git init /w/workspace/transportpce-tox-verify-titanium # timeout=10 16:36:51 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:36:51 > git --version # timeout=10 16:36:51 > git --version # 'git version 2.34.1' 16:36:51 using GIT_SSH to set credentials jenkins-ssh 16:36:51 Verifying host key using known hosts file, will automatically accept unseen keys 16:36:51 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 16:36:57 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:36:57 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:36:57 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:36:57 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:36:57 using GIT_SSH to set credentials jenkins-ssh 16:36:57 Verifying host key using known hosts file, will automatically accept unseen keys 16:36:57 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/99/125699/1 # timeout=10 16:36:58 > git rev-parse 13d866494a99752d6365285cbea405136433cb64^{commit} # timeout=10 16:36:58 Checking out Revision 13d866494a99752d6365285cbea405136433cb64 (refs/changes/99/125699/1) 16:36:58 > git config core.sparsecheckout # timeout=10 16:36:58 > git checkout -f 13d866494a99752d6365285cbea405136433cb64 # timeout=10 16:36:58 Commit message: "Update dependencies in pom.xml" 16:36:58 > git rev-parse FETCH_HEAD^{commit} # timeout=10 16:36:58 > git rev-list --no-walk 2a81e2c90af3b37e219571684f0971a2a0ddf97f # timeout=10 16:36:58 > git remote # timeout=10 16:36:58 > git submodule init # timeout=10 16:36:58 > git submodule sync # timeout=10 16:36:58 > git config --get remote.origin.url # timeout=10 16:36:58 > git submodule init # timeout=10 16:36:58 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 16:36:58 ERROR: No submodules found. 16:37:02 provisioning config files... 16:37:02 copy managed file [npmrc] to file:/home/jenkins/.npmrc 16:37:02 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 16:37:02 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins125261151066864657.sh 16:37:02 ---> python-tools-install.sh 16:37:02 Setup pyenv: 16:37:02 * system (set by /opt/pyenv/version) 16:37:02 * 3.8.20 (set by /opt/pyenv/version) 16:37:02 * 3.9.20 (set by /opt/pyenv/version) 16:37:02 3.10.15 16:37:02 3.11.10 16:37:07 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-jQEt 16:37:07 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 16:37:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:37:11 lf-activate-venv(): INFO: Installing additional packages: lftools 16:37:39 lf-activate-venv(): INFO: Adding /tmp/venv-jQEt/bin to PATH 16:37:39 Generating Requirements File 16:38:07 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. 16:38:07 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 16:38:08 Python 3.11.10 16:38:08 pip 26.2.1 from /tmp/venv-jQEt/lib/python3.11/site-packages/pip (python 3.11) 16:38:09 aiohappyeyeballs==2.7.1 16:38:09 aiohttp==3.14.3 16:38:09 aiosignal==1.4.0 16:38:09 appdirs==1.4.4 16:38:09 argcomplete==3.7.2 16:38:09 aspy.yaml==1.3.0 16:38:09 attrs==26.1.0 16:38:09 autopage==0.6.0 16:38:09 beautifulsoup4==4.15.0 16:38:09 boto3==1.43.86 16:38:09 botocore==1.43.86 16:38:09 bs4==0.0.2 16:38:09 certifi==2026.7.22 16:38:09 cffi==2.1.1 16:38:09 cfgv==3.5.0 16:38:09 chardet==7.6.0 16:38:09 charset-normalizer==3.5.1 16:38:09 click==8.5.0 16:38:09 cliff==4.16.0 16:38:09 cmd2==4.2.2 16:38:09 cryptography==3.3.2 16:38:09 debtcollector==3.1.0 16:38:09 decorator==5.3.1 16:38:09 defusedxml==0.7.1 16:38:09 Deprecated==1.3.1 16:38:09 distlib==0.4.3 16:38:09 dnspython==2.8.0 16:38:09 docker==7.2.0 16:38:09 dogpile.cache==1.5.0 16:38:09 durationpy==0.11 16:38:09 email-validator==2.3.0 16:38:09 filelock==3.32.5 16:38:09 frozenlist==1.8.0 16:38:09 future==1.0.0 16:38:09 gitdb==4.0.12 16:38:09 GitPython==3.1.61 16:38:09 httplib2==0.30.2 16:38:09 identify==2.6.19 16:38:09 idna==3.19 16:38:09 importlib-resources==1.5.0 16:38:09 iso8601==2.1.0 16:38:09 Jinja2==3.1.6 16:38:09 jmespath==1.1.0 16:38:09 jsonpatch==1.33 16:38:09 jsonpointer==3.1.1 16:38:09 jsonschema==4.26.0 16:38:09 jsonschema-specifications==2025.9.1 16:38:09 keystoneauth1==5.17.0 16:38:09 kubernetes==36.0.3 16:38:09 lftools==0.37.23 16:38:09 lxml==6.1.3 16:38:09 markdown-it-py==4.2.0 16:38:09 MarkupSafe==3.0.3 16:38:09 mdurl==0.1.2 16:38:09 msgpack==1.2.2 16:38:09 multi_key_dict==2.0.3 16:38:09 multidict==6.7.1 16:38:09 munch==4.0.0 16:38:09 netaddr==1.3.0 16:38:09 niet==1.4.2 16:38:09 nodeenv==1.10.0 16:38:09 oauth2client==4.1.3 16:38:09 oauthlib==3.3.1 16:38:09 openstacksdk==4.20.0 16:38:09 os-service-types==1.9.0 16:38:09 osc-lib==4.7.0 16:38:09 oslo.config==10.7.0 16:38:09 oslo.context==6.5.0 16:38:09 oslo.i18n==6.9.0 16:38:09 oslo.log==8.3.1 16:38:09 oslo.serialization==5.11.0 16:38:09 oslo.utils==10.2.0 16:38:09 packaging==26.3 16:38:09 pbr==7.0.3 16:38:09 platformdirs==4.11.7 16:38:09 prettytable==3.18.0 16:38:09 prompt_toolkit==3.0.53 16:38:09 propcache==0.5.2 16:38:09 psutil==7.2.2 16:38:09 pyasn1==0.6.4 16:38:09 pyasn1_modules==0.4.2 16:38:09 pycparser==3.0 16:38:09 pygerrit2==2.0.15 16:38:09 PyGithub==2.10.0 16:38:09 Pygments==2.21.0 16:38:09 PyJWT==2.13.0 16:38:09 PyNaCl==1.6.2 16:38:09 pyparsing==2.4.7 16:38:09 pyperclip==1.11.0 16:38:09 pyrsistent==0.20.0 16:38:09 python-dateutil==2.9.0.post0 16:38:09 python-discovery==1.6.0 16:38:09 python-heatclient==5.3.0 16:38:09 python-jenkins==1.8.3 16:38:09 python-keystoneclient==6.0.0 16:38:09 python-magnumclient==5.0.0 16:38:09 python-manilaclient==6.3.0 16:38:09 python-openstackclient==10.3.0 16:38:09 python-swiftclient==4.11.0 16:38:09 PyYAML==6.0.3 16:38:09 referencing==0.37.0 16:38:09 requests==2.34.2 16:38:09 requests-oauthlib==2.0.0 16:38:09 rfc3986==2.0.0 16:38:09 rich==15.0.0 16:38:09 rich-argparse==1.8.0 16:38:09 rpds-py==2026.6.3 16:38:09 rsa==4.9.1 16:38:09 ruamel.yaml==0.19.1 16:38:09 ruamel.yaml.clib==0.2.15 16:38:09 s3transfer==0.19.2 16:38:09 simplejson==4.1.2 16:38:09 six==1.17.0 16:38:09 smmap==5.0.3 16:38:09 soupsieve==2.9.2 16:38:09 stevedore==5.9.1 16:38:09 tabulate==0.10.0 16:38:09 toml==0.10.2 16:38:09 tomlkit==0.15.1 16:38:09 tqdm==4.70.0 16:38:09 typing_extensions==4.16.0 16:38:09 urllib3==1.26.20 16:38:09 virtualenv==21.7.8 16:38:09 wcwidth==0.8.3 16:38:09 websocket-client==1.9.2 16:38:09 wrapt==2.4.0 16:38:09 xdg==6.0.0 16:38:09 xmltodict==1.0.4 16:38:09 yarl==1.24.5 16:38:09 yq==4.1.2 16:38:09 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins5219612517456882945.sh 16:38:09 ---> uv-install.sh 16:38:09 Installing uv/uvx (latest) using shell installer 16:38:09 2026-09-02 16:38:09 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-ijOhMz.sh" [1] 16:38:09 downloading uv 0.12.9 x86_64-unknown-linux-gnu 16:38:10 installing to /home/jenkins/.local/bin 16:38:10 uv 16:38:10 uvx 16:38:10 everything's installed! 16:38:10 16:38:10 To add $HOME/.local/bin to your PATH, either restart your shell or run: 16:38:10 16:38:10 source $HOME/.local/bin/env (sh, bash, zsh) 16:38:10 source $HOME/.local/bin/env.fish (fish) 16:38:10 Adding install location to PATH 16:38:10 ---> Validating uv/uvx install 16:38:10 uvx 0.12.9 (x86_64-unknown-linux-gnu) 16:38:10 [EnvInject] - Injecting environment variables from a build step. 16:38:10 [EnvInject] - Injecting as environment variables the properties content 16:38:10 PYTHON=python3 16:38:10 16:38:10 [EnvInject] - Variables injected successfully. 16:38:10 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins3944269063202042133.sh 16:38:10 ---> tox-install.sh 16:38:10 + source /home/jenkins/lf-env.sh 16:38:10 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:38:10 ++ mktemp -d /tmp/venv-XXXX 16:38:10 + lf_venv=/tmp/venv-XY1P 16:38:10 + local venv_file=/tmp/.os_lf_venv 16:38:10 + local python=python3 16:38:10 + local options 16:38:10 + local set_path=true 16:38:10 + local install_args= 16:38:10 ++ 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 16:38:10 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:38:10 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:38:10 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:38:10 + true 16:38:10 + case $1 in 16:38:10 + venv_file=/tmp/.toxenv 16:38:10 + shift 2 16:38:10 + true 16:38:10 + case $1 in 16:38:10 + shift 16:38:10 + break 16:38:10 + case $python in 16:38:10 + local pkg_list= 16:38:10 + [[ -d /opt/pyenv ]] 16:38:10 + echo 'Setup pyenv:' 16:38:10 Setup pyenv: 16:38:10 + export PYENV_ROOT=/opt/pyenv 16:38:10 + PYENV_ROOT=/opt/pyenv 16:38:10 + 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 16:38:10 + 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 16:38:10 + pyenv versions 16:38:10 system 16:38:10 3.8.20 16:38:10 3.9.20 16:38:10 3.10.15 16:38:10 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 16:38:10 + command -v pyenv 16:38:10 ++ pyenv init - --no-rehash 16:38:10 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:38:10 for i in ${!paths[@]}; do 16:38:10 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:38:10 fi; done; 16:38:10 echo "${paths[*]}"'\'')" 16:38:10 export PATH="/opt/pyenv/shims:${PATH}" 16:38:10 export PYENV_SHELL=bash 16:38:10 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:38:10 pyenv() { 16:38:10 local command 16:38:10 command="${1:-}" 16:38:10 if [ "$#" -gt 0 ]; then 16:38:10 shift 16:38:10 fi 16:38:10 16:38:10 case "$command" in 16:38:10 rehash|shell) 16:38:10 eval "$(pyenv "sh-$command" "$@")" 16:38:10 ;; 16:38:10 *) 16:38:10 command pyenv "$command" "$@" 16:38:10 ;; 16:38:10 esac 16:38:10 }' 16:38:10 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:38:10 for i in ${!paths[@]}; do 16:38:10 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:38:10 fi; done; 16:38:10 echo "${paths[*]}"' 16:38:10 ++ 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 16:38:10 ++ 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 16:38:10 ++ 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 16:38:10 ++ export PYENV_SHELL=bash 16:38:10 ++ PYENV_SHELL=bash 16:38:10 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:38:10 +++ complete -F _pyenv pyenv 16:38:10 ++ lf-pyver python3 16:38:10 ++ local py_version_xy=python3 16:38:10 ++ local py_version_xyz= 16:38:10 ++ pyenv versions 16:38:10 ++ sed 's/^[ *]* //' 16:38:10 ++ awk '{ print $1 }' 16:38:10 ++ local command 16:38:10 ++ command=versions 16:38:10 ++ '[' 1 -gt 0 ']' 16:38:10 ++ grep -E '^[0-9.]*[0-9]$' 16:38:10 ++ shift 16:38:10 ++ case "$command" in 16:38:10 ++ command pyenv versions 16:38:10 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:38:10 +++ grep '^3' /tmp/.pyenv_versions 16:38:10 +++ sort -V 16:38:10 +++ tail -n 1 16:38:10 ++ py_version_xyz=3.11.10 16:38:10 ++ [[ -z 3.11.10 ]] 16:38:10 ++ echo 3.11.10 16:38:10 ++ return 0 16:38:10 + pyenv local 3.11.10 16:38:10 + local command 16:38:10 + command=local 16:38:10 + '[' 2 -gt 0 ']' 16:38:10 + shift 16:38:10 + case "$command" in 16:38:10 + command pyenv local 3.11.10 16:38:10 + for arg in "$@" 16:38:10 + case $arg in 16:38:10 + pkg_list+='tox ' 16:38:10 + for arg in "$@" 16:38:10 + case $arg in 16:38:10 + pkg_list+='virtualenv ' 16:38:10 + for arg in "$@" 16:38:10 + case $arg in 16:38:10 + pkg_list+='urllib3~=1.26.15 ' 16:38:10 + [[ -f /tmp/.toxenv ]] 16:38:10 + [[ ! -f /tmp/.toxenv ]] 16:38:10 + [[ -n '' ]] 16:38:10 + python3 -m venv /tmp/venv-XY1P 16:38:14 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-XY1P' 16:38:14 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-XY1P 16:38:14 + echo /tmp/venv-XY1P 16:38:14 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 16:38:14 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 16:38:14 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:38:14 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:38:14 + local 'pip_opts=--upgrade --quiet' 16:38:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:38:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:38:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:38:14 + [[ -n '' ]] 16:38:14 + [[ -n '' ]] 16:38:14 + lf-venv-pip-install /tmp/venv-XY1P/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:38:14 + local venv_python=/tmp/venv-XY1P/bin/python3 16:38:14 + shift 16:38:14 + local upstream=https://pypi.org/simple 16:38:14 + /tmp/venv-XY1P/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 16:38:18 + return 0 16:38:18 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:38:18 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:38:18 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:38:18 + lf-venv-pip-install /tmp/venv-XY1P/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 16:38:18 + local venv_python=/tmp/venv-XY1P/bin/python3 16:38:18 + shift 16:38:18 + local upstream=https://pypi.org/simple 16:38:18 + /tmp/venv-XY1P/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 16:38:21 + return 0 16:38:21 + type python3 16:38:21 + true 16:38:21 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-XY1P/bin to PATH' 16:38:21 lf-activate-venv(): INFO: Adding /tmp/venv-XY1P/bin to PATH 16:38:21 + PATH=/tmp/venv-XY1P/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 16:38:21 + return 0 16:38:21 + python3 --version 16:38:21 Python 3.11.10 16:38:21 + python3 -m pip --version 16:38:21 pip 26.2.1 from /tmp/venv-XY1P/lib/python3.11/site-packages/pip (python 3.11) 16:38:21 + python3 -m pip freeze 16:38:21 cachetools==7.1.8 16:38:21 colorama==0.4.6 16:38:21 distlib==0.4.3 16:38:21 filelock==3.32.5 16:38:21 packaging==26.3 16:38:21 platformdirs==4.11.7 16:38:21 pluggy==1.6.0 16:38:21 pyproject-api==1.11.0 16:38:21 python-discovery==1.6.0 16:38:21 tomli_w==1.2.0 16:38:21 tox==4.61.2 16:38:21 typing_extensions==4.16.0 16:38:21 urllib3==1.26.20 16:38:21 virtualenv==21.7.8 16:38:21 [transportpce-tox-verify-titanium] $ /bin/sh -xe /tmp/jenkins11770877274098478119.sh 16:38:21 [EnvInject] - Injecting environment variables from a build step. 16:38:21 [EnvInject] - Injecting as environment variables the properties content 16:38:21 PARALLEL=True 16:38:21 16:38:21 [EnvInject] - Variables injected successfully. 16:38:21 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins4573726376486856270.sh 16:38:21 ---> tox-run.sh 16:38:21 + 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 16:38:21 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/tox 16:38:21 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/docs 16:38:21 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/tox 16:38:21 + cd /w/workspace/transportpce-tox-verify-titanium/. 16:38:21 + source /home/jenkins/lf-env.sh 16:38:21 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:38:21 ++ mktemp -d /tmp/venv-XXXX 16:38:21 + lf_venv=/tmp/venv-EqfK 16:38:21 + local venv_file=/tmp/.os_lf_venv 16:38:21 + local python=python3 16:38:21 + local options 16:38:21 + local set_path=true 16:38:21 + local install_args= 16:38:21 ++ 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 16:38:21 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:38:21 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:38:21 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:38:21 + true 16:38:21 + case $1 in 16:38:21 + venv_file=/tmp/.toxenv 16:38:21 + shift 2 16:38:21 + true 16:38:21 + case $1 in 16:38:21 + shift 16:38:21 + break 16:38:21 + case $python in 16:38:21 + local pkg_list= 16:38:21 + [[ -d /opt/pyenv ]] 16:38:21 + echo 'Setup pyenv:' 16:38:21 Setup pyenv: 16:38:21 + export PYENV_ROOT=/opt/pyenv 16:38:21 + PYENV_ROOT=/opt/pyenv 16:38:21 + 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 16:38:21 + 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 16:38:21 + pyenv versions 16:38:21 system 16:38:21 3.8.20 16:38:21 3.9.20 16:38:21 3.10.15 16:38:21 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 16:38:21 + command -v pyenv 16:38:21 ++ pyenv init - --no-rehash 16:38:21 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:38:21 for i in ${!paths[@]}; do 16:38:21 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:38:21 fi; done; 16:38:21 echo "${paths[*]}"'\'')" 16:38:21 export PATH="/opt/pyenv/shims:${PATH}" 16:38:21 export PYENV_SHELL=bash 16:38:21 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:38:21 pyenv() { 16:38:21 local command 16:38:21 command="${1:-}" 16:38:21 if [ "$#" -gt 0 ]; then 16:38:21 shift 16:38:21 fi 16:38:21 16:38:21 case "$command" in 16:38:21 rehash|shell) 16:38:21 eval "$(pyenv "sh-$command" "$@")" 16:38:21 ;; 16:38:21 *) 16:38:21 command pyenv "$command" "$@" 16:38:21 ;; 16:38:21 esac 16:38:21 }' 16:38:21 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:38:21 for i in ${!paths[@]}; do 16:38:21 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:38:21 fi; done; 16:38:21 echo "${paths[*]}"' 16:38:21 ++ 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 16:38:21 ++ 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 16:38:21 ++ 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 16:38:21 ++ export PYENV_SHELL=bash 16:38:21 ++ PYENV_SHELL=bash 16:38:21 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:38:21 +++ complete -F _pyenv pyenv 16:38:21 ++ lf-pyver python3 16:38:21 ++ local py_version_xy=python3 16:38:21 ++ local py_version_xyz= 16:38:21 ++ pyenv versions 16:38:21 ++ local command 16:38:21 ++ command=versions 16:38:21 ++ '[' 1 -gt 0 ']' 16:38:21 ++ shift 16:38:21 ++ case "$command" in 16:38:21 ++ command pyenv versions 16:38:21 ++ sed 's/^[ *]* //' 16:38:21 ++ awk '{ print $1 }' 16:38:21 ++ grep -E '^[0-9.]*[0-9]$' 16:38:21 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:38:21 +++ sort -V 16:38:21 +++ tail -n 1 16:38:21 +++ grep '^3' /tmp/.pyenv_versions 16:38:21 ++ py_version_xyz=3.11.10 16:38:21 ++ [[ -z 3.11.10 ]] 16:38:21 ++ echo 3.11.10 16:38:21 ++ return 0 16:38:21 + pyenv local 3.11.10 16:38:21 + local command 16:38:21 + command=local 16:38:21 + '[' 2 -gt 0 ']' 16:38:21 + shift 16:38:21 + case "$command" in 16:38:21 + command pyenv local 3.11.10 16:38:21 + for arg in "$@" 16:38:21 + case $arg in 16:38:21 + pkg_list+='tox ' 16:38:21 + for arg in "$@" 16:38:21 + case $arg in 16:38:21 + pkg_list+='virtualenv ' 16:38:21 + for arg in "$@" 16:38:21 + case $arg in 16:38:21 + pkg_list+='urllib3~=1.26.15 ' 16:38:21 + [[ -f /tmp/.toxenv ]] 16:38:21 ++ cat /tmp/.toxenv 16:38:21 + lf_venv=/tmp/venv-XY1P 16:38:21 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XY1P from' file:/tmp/.toxenv 16:38:21 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XY1P from file:/tmp/.toxenv 16:38:21 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:38:21 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:38:21 + local 'pip_opts=--upgrade --quiet' 16:38:21 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:38:21 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:38:21 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:38:21 + [[ -n '' ]] 16:38:21 + [[ -n '' ]] 16:38:21 + lf-venv-pip-install /tmp/venv-XY1P/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:38:21 + local venv_python=/tmp/venv-XY1P/bin/python3 16:38:21 + shift 16:38:21 + local upstream=https://pypi.org/simple 16:38:21 + /tmp/venv-XY1P/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 16:38:22 + return 0 16:38:22 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:38:22 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:38:22 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:38:22 + lf-venv-pip-install /tmp/venv-XY1P/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 16:38:22 + local venv_python=/tmp/venv-XY1P/bin/python3 16:38:22 + shift 16:38:22 + local upstream=https://pypi.org/simple 16:38:22 + /tmp/venv-XY1P/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 16:38:23 + return 0 16:38:23 + type python3 16:38:23 + true 16:38:23 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-XY1P/bin to PATH' 16:38:23 lf-activate-venv(): INFO: Adding /tmp/venv-XY1P/bin to PATH 16:38:23 + PATH=/tmp/venv-XY1P/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 16:38:23 + return 0 16:38:23 + [[ -d /opt/pyenv ]] 16:38:23 + echo '---> Setting up pyenv' 16:38:23 ---> Setting up pyenv 16:38:23 + export PYENV_ROOT=/opt/pyenv 16:38:23 + PYENV_ROOT=/opt/pyenv 16:38:23 + export PATH=/opt/pyenv/bin:/tmp/venv-XY1P/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 16:38:23 + PATH=/opt/pyenv/bin:/tmp/venv-XY1P/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 16:38:23 ++ pwd 16:38:23 + PYTHONPATH=/w/workspace/transportpce-tox-verify-titanium 16:38:23 + export PYTHONPATH 16:38:23 + export TOX_TESTENV_PASSENV=PYTHONPATH 16:38:23 + TOX_TESTENV_PASSENV=PYTHONPATH 16:38:23 + tox --version 16:38:24 4.61.2 from /tmp/venv-XY1P/lib/python3.11/site-packages/tox/__init__.py 16:38:24 + PARALLEL=True 16:38:24 + TOX_OPTIONS_LIST= 16:38:24 + [[ -n '' ]] 16:38:24 + case ${PARALLEL,,} in 16:38:24 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 16:38:24 + tox --parallel auto --parallel-live 16:38:24 + tee -a /w/workspace/transportpce-tox-verify-titanium/archives/tox/tox.log 16:38:26 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 16:38:26 checkbashisms: freeze> python -m pip freeze --all 16:38:26 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 16:38:26 docs: install_deps> python -I -m pip install -r docs/requirements.txt 16:38:26 checkbashisms: pip==26.2.1,setuptools==84.0.0 16:38:26 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 16:38:26 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)' 16:38:26 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 16:38:28 checkbashisms: OK ✔ in 3.28 seconds 16:38:28 pre-commit: install_deps> python -I -m pip install pre-commit 16:38:30 pre-commit: freeze> python -m pip freeze --all 16:38:31 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 16:38:31 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 16:38:31 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)' 16:38:31 /usr/bin/cpan 16:38:31 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run --all-files --show-diff-on-failure 16:38:31 [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. 16:38:31 [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. 16:38:31 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 16:38:31 [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. 16:38:31 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 16:38:32 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 16:38:33 buildcontroller: freeze> python -m pip freeze --all 16:38:33 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 16:38:33 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh 16:38:33 + update-java-alternatives -l 16:38:33 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 16:38:33 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 16:38:33 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 16:38:33 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 16:38:33 update-alternatives: error: no alternatives for jaotc 16:38:33 update-alternatives: error: no alternatives for rmic 16:38:33 + java -version 16:38:33 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 16:38:33 + JAVA_VER=21 16:38:33 + echo 21 16:38:33 21 16:38:33 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 16:38:33 + javac -version 16:38:34 + JAVAC_VER=21 16:38:34 + echo 21 16:38:34 21 16:38:34 ok, java is 21 or newer 16:38:34 + [ 21 -ge 21 ] 16:38:34 + [ 21 -ge 21 ] 16:38:34 + echo ok, java is 21 or newer 16:38:34 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 16:38:34 2026-09-02 16:38:34 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] 16:38:34 + sudo mkdir -p /opt 16:38:34 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 16:38:34 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:38:34 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 16:38:34 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 16:38:34 + mvn --version 16:38:34 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 16:38:34 Maven home: /opt/maven 16:38:34 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 16:38:34 Default locale: en, platform encoding: UTF-8 16:38:34 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 16:38:34 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 16:38:34 NOTE: Picked up JDK_JAVA_OPTIONS: 16:38:34 --add-opens=java.base/java.io=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.lang=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.net=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.nio=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.util=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:38:34 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:38:34 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:38:34 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:38:34 -Xlog:disable 16:38:35 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 16:38:36 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 16:38:36 [INFO] Once installed this environment will be reused. 16:38:36 [INFO] This may take a few minutes... 16:38:42 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:38:42 [INFO] Once installed this environment will be reused. 16:38:42 [INFO] This may take a few minutes... 16:38:42 docs: freeze> python -m pip freeze --all 16:38:43 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 16:38:43 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 16:38:43 docs-linkcheck: freeze> python -m pip freeze --all 16:38:43 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 16:38:43 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 16:38:45 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 71, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 16:38:45 @ 16:38:45 [ERROR] The build could not read 11 projects -> [Help 1] 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-api:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/api/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-common:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/common/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:38:45 [ERROR] 16:38:45 [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 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-renderer:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/renderer/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-networkmodel:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/networkmodel/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 71, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-olm:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/olm/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-pce:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/pce/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-servicehandler:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/servicehandler/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-tapi:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/tapi/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] The project org.opendaylight.transportpce:transportpce-nbinotifications:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/nbinotifications/pom.xml) has 1 error 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 16:38:45 [ERROR] 16:38:45 [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 16:38:45 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 16:38:45 [ERROR] 16:38:45 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:38:45 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:38:45 [ERROR] 16:38:45 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:38:45 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 16:38:45 buildcontroller: exit 1 (12.32 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh pid=3016 16:38:46 buildcontroller: FAIL ✖ in 21.26 seconds 16:38:46 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 16:38:46 docs: OK ✔ in 21.63 seconds 16:38:46 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 16:38:48 docs-linkcheck: OK ✔ in 23.91 seconds 16:38:48 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 16:38:49 pylint: freeze> python -m pip freeze --all 16:38:49 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 16:38:49 [INFO] Once installed this environment will be reused. 16:38:49 [INFO] This may take a few minutes... 16:38:49 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 16:38:49 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}$' '{}' + 16:38:52 [INFO] Installing environment for https://github.com/perltidy/perltidy. 16:38:52 [INFO] Once installed this environment will be reused. 16:38:52 [INFO] This may take a few minutes... 16:38:53 build_karaf_tests121: freeze> python -m pip freeze --all 16:38:53 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 16:38:53 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 16:38:53 build karaf in karaf121 with ./karaf121.env 16:38:53 NOTE: Picked up JDK_JAVA_OPTIONS: 16:38:53 --add-opens=java.base/java.io=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.lang=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.net=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.nio=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.util=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:38:53 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:38:53 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:38:53 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:38:53 -Xlog:disable 16:38:55 build_karaf_tests221: freeze> python -m pip freeze --all 16:38:56 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 16:38:56 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 16:38:56 build karaf in karaf221 with ./karaf221.env 16:38:56 NOTE: Picked up JDK_JAVA_OPTIONS: 16:38:56 --add-opens=java.base/java.io=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.lang=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.net=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.nio=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.util=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:38:56 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:38:56 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:38:56 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:38:56 -Xlog:disable 16:39:02 [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 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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/) 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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/) 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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/) 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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/) 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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/) 16:39:02 [ERROR] -> [Help 1] 16:39:02 [ERROR] 16:39:02 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:39:02 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:39:02 [ERROR] 16:39:02 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:39:02 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:39:02 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:39:02 build_karaf_tests121: exit 127 (8.89 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3652 16:39:02 build_karaf_tests121: FAIL ✖ in 16.4 seconds 16:39:02 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 16:39:02 [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 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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 16:39:02 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:02 [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 16:39:02 [ERROR] -> [Help 1] 16:39:02 [ERROR] 16:39:02 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:39:02 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:39:02 [ERROR] 16:39:02 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:39:02 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:39:02 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:39:02 build_karaf_tests221: exit 127 (6.63 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3722 16:39:03 build_karaf_tests221: FAIL ✖ in 14.46 seconds 16:39:03 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 16:39:04 trim trailing whitespace.................................................Passed 16:39:04 Tabs remover.............................................................Passed 16:39:04 autopep8.................................................................Passed 16:39:09 perltidy.................................................................Passed 16:39:09 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run gitlint-ci --hook-stage manual 16:39:10 [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. 16:39:10 [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. 16:39:10 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 16:39:10 [INFO] Once installed this environment will be reused. 16:39:10 [INFO] This may take a few minutes... 16:39:10 build_karaf_tests71: freeze> python -m pip freeze --all 16:39:11 build_karaf_tests190: freeze> python -m pip freeze --all 16:39:11 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 16:39:11 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 16:39:11 build karaf in karaf71 with ./karaf71.env 16:39:11 NOTE: Picked up JDK_JAVA_OPTIONS: 16:39:11 --add-opens=java.base/java.io=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.lang=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.net=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.nio=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:39:11 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:39:11 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:39:11 -Xlog:disable 16:39:11 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 16:39:11 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 16:39:11 build karaf in karafoc with ./karafoc.env 16:39:11 NOTE: Picked up JDK_JAVA_OPTIONS: 16:39:11 --add-opens=java.base/java.io=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.lang=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.net=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.nio=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:39:11 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:39:11 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:39:11 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:39:11 -Xlog:disable 16:39:15 16:39:15 ------------------------------------ 16:39:15 Your code has been rated at 10.00/10 16:39:15 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] -> [Help 1] 16:39:17 [ERROR] 16:39:17 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:39:17 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:39:17 [ERROR] 16:39:17 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:39:17 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:39:17 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:39:17 build_karaf_tests71: exit 127 (6.11 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3992 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 16:39:17 [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 16:39:17 [ERROR] -> [Help 1] 16:39:17 [ERROR] 16:39:17 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:39:17 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:39:17 [ERROR] 16:39:17 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:39:17 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:39:17 build_karaf_tests71: FAIL ✖ in 14.69 seconds 16:39:17 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 16:39:17 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:39:17 build_karaf_tests190: exit 127 (6.17 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=4056 16:39:17 build_karaf_tests190: FAIL ✖ in 14.53 seconds 16:39:17 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 16:39:18 gitlint..................................................................Passed 16:39:18 pre-commit: OK ✔ in 50.65 seconds 16:39:18 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 16:39:23 pylint: OK ✔ in 33.42 seconds 16:39:23 sims: freeze> python -m pip freeze --all 16:39:23 buildlighty: freeze> python -m pip freeze --all 16:39:24 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 16:39:24 sims: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./install_lightynode.sh 16:39:24 Using lighynode version 20.1.0.5 16:39:24 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 16:39:24 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 16:39:24 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh 16:39:24 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 16:39:35 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:11.3.0-SNAPSHOT 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-api:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-common:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:11.3.0-SNAPSHOT (compile) 16:39:35 [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/) 16:39:35 [ERROR] -> [Help 1] 16:39:35 [ERROR] 16:39:35 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:39:35 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:39:35 [ERROR] 16:39:35 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:39:35 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:39:35 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 16:39:35 buildlighty: exit 9 (11.63 seconds) /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh pid=4222 16:40:12 buildlighty: FAIL ✖ in 18.54 seconds 16:40:12 sims: OK ✔ in 23.16 seconds 16:40:12 testsPCE: freeze> python -m pip freeze --all 16:40:13 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 16:40:13 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce 16:40:13 pytest -q transportpce_tests/pce/test01_pce.py 16:42:13 EEEEEEEEEEEEEEEEEEEE [100%] 16:42:17 ==================================== ERRORS ==================================== 16:42:17 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 16:42:17 16:42:17 cls = 16:42:17 16:42:17 @classmethod 16:42:17 def setUpClass(cls): 16:42:17 # pylint: disable=bare-except 16:42:17 sample_files_parsed = False 16:42:17 time.sleep(20) 16:42:17 try: 16:42:17 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:42:17 "..", "..", "sample_configs", "honeynode-topo.json") 16:42:17 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 16:42:17 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 16:42:17 16:42:17 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:42:17 "..", "..", "sample_configs", "NW-simple-topology.json") 16:42:17 16:42:17 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 16:42:17 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 16:42:17 16:42:17 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:42:17 "..", "..", "sample_configs", "NW-for-test-5-4.json") 16:42:17 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 16:42:17 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 16:42:17 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:42:17 "..", "..", "sample_configs", "pce_portmapping_121.json") 16:42:17 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 16:42:17 cls.port_mapping_data = port_mapping.read() 16:42:17 sample_files_parsed = True 16:42:17 except PermissionError as err: 16:42:17 print("Permission Error when trying to read sample files\n", err) 16:42:17 sys.exit(2) 16:42:17 except FileNotFoundError as err: 16:42:17 print("File Not found Error when trying to read sample files\n", err) 16:42:17 sys.exit(2) 16:42:17 except: 16:42:17 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 16:42:17 sys.exit(2) 16:42:17 finally: 16:42:17 if sample_files_parsed: 16:42:17 print("sample files content loaded") 16:42:17 16:42:17 > cls.processes = test_utils.start_tpce() 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 16:42:17 transportpce_tests/pce/test01_pce.py:93: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 def start_tpce(): 16:42:17 if 'NO_ODL_STARTUP' in os.environ: 16:42:17 print('No OpenDaylight instance to start!') 16:42:17 return [] 16:42:17 print('starting OpenDaylight...') 16:42:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:42:17 process = start_lighty() 16:42:17 else: 16:42:17 process = start_karaf() 16:42:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:42:17 print('OpenDaylight started !') 16:42:17 else: 16:42:17 print('OpenDaylight failed to start !') 16:42:17 shutdown_process(process) 16:42:17 for pid in process_list: 16:42:17 shutdown_process(pid) 16:42:17 > sys.exit(1) 16:42:17 E SystemExit: 1 16:42:17 16:42:17 transportpce_tests/common/test_utils.py:232: SystemExit 16:42:17 ---------------------------- Captured stdout setup ----------------------------- 16:42:17 sample files content loaded 16:42:17 starting OpenDaylight... 16:42:17 starting KARAF (karaf) TransportPCE build... 16:42:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:42:17 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e2179f2e0> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b74c0> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e21773f60> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e2179f2e0> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e23c55120> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e2179f2e0> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b5d00> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b7a60> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e21773f60> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b7b00> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b7380> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e21773f60> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b6fc0> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b5da0> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b7d80> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b7b00> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e21773e20> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e21773ce0> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 16:42:17 16:42:17 cls = 16:42:17 func = . at 0x7f8e217b7c40> 16:42:17 when = 'setup' 16:42:17 reraise = (, ) 16:42:17 16:42:17 @classmethod 16:42:17 def from_call( 16:42:17 cls, 16:42:17 func: Callable[[], TResult], 16:42:17 when: Literal["collect", "setup", "call", "teardown"], 16:42:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:42:17 ) -> CallInfo[TResult]: 16:42:17 """Call func, wrapping the result in a CallInfo. 16:42:17 16:42:17 :param func: 16:42:17 The function to call. Called without arguments. 16:42:17 :type func: Callable[[], _pytest.runner.TResult] 16:42:17 :param when: 16:42:17 The phase in which the function is called. 16:42:17 :param reraise: 16:42:17 Exception or exceptions that shall propagate if raised by the 16:42:17 function, instead of being wrapped in the CallInfo. 16:42:17 """ 16:42:17 excinfo = None 16:42:17 instant = timing.Instant() 16:42:17 try: 16:42:17 > result: TResult | None = func() 16:42:17 ^^^^^^ 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:42:17 lambda: runtest_hook(item=item, **kwds), 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:42:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:42:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:42:17 yield 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:42:17 return (yield) 16:42:17 ^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:42:17 item.session._setupstate.setup(item) 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:42:17 col.setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:42:17 super().setup() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:42:17 self._request._fillfixtures() 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:42:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:42:17 fixturedef = self._get_active_fixturedef(argname) 16:42:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:42:17 fixturedef.execute(request=subrequest) 16:42:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:42:17 16:42:17 self = 16:42:17 request = > 16:42:17 16:42:17 def execute(self, request: SubRequest) -> FixtureValue: 16:42:17 """Return the value of this fixture, executing it if not cached.""" 16:42:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:42:17 # This needs to be done before checking if we have a cached value, since 16:42:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:42:17 # parametrization, they finalize themselves and fixtures depending on it 16:42:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:42:17 # See #4871 16:42:17 requested_fixtures_that_should_finalize_us = [] 16:42:17 for argname in self.argnames: 16:42:17 fixturedef = request._get_active_fixturedef(argname) 16:42:17 # Saves requested fixtures in a list so we later can add our finalizer 16:42:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:42:17 # down first. This is generally handled by SetupState, but still currently 16:42:17 # needed when this fixture is not parametrized but depends on a parametrized 16:42:17 # fixture. 16:42:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:42:17 16:42:17 # Check for (and return) cached value/exception. 16:42:17 if self.cached_result is not None: 16:42:17 request_cache_key = self.cache_key(request) 16:42:17 cache_key = self.cached_result[1] 16:42:17 try: 16:42:17 # Attempt to make a normal == check: this might fail for objects 16:42:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:42:17 cache_hit = bool(request_cache_key == cache_key) 16:42:17 except (ValueError, RuntimeError): 16:42:17 # If the comparison raises, use 'is' as fallback. 16:42:17 cache_hit = request_cache_key is cache_key 16:42:17 16:42:17 if cache_hit: 16:42:17 if self.cached_result[2] is not None: 16:42:17 exc, exc_tb = self.cached_result[2] 16:42:17 raise exc.with_traceback(exc_tb) 16:42:17 else: 16:42:17 return self.cached_result[0] 16:42:17 # We have a previous but differently parametrized fixture instance 16:42:17 # so we need to tear it down before creating a new one. 16:42:17 self.finish(request) 16:42:17 assert self.cached_result is None 16:42:17 16:42:17 # Add finalizer to requested fixtures we saved previously. 16:42:17 # We make sure to do this after checking for cached value to avoid 16:42:17 # adding our finalizer multiple times. (#12135) 16:42:17 finalizer = functools.partial(self.finish, request=request) 16:42:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:42:17 parent_fixture.addfinalizer(finalizer) 16:42:17 16:42:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:42:17 # which is executed last. 16:42:17 > assert not self._finalizers 16:42:17 ^^^^^^^^^^^^^^^^^^^^ 16:42:17 E AssertionError 16:42:17 16:42:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:42:17 =========================== short test summary info ============================ 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 16:42:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 16:42:17 20 errors in 124.13s (0:02:04) 16:42:17 testsPCE: exit 1 (124.49 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce pid=4357 16:42:18 testsPCE: FAIL ✖ in 2 minutes 59.01 seconds 16:42:18 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 16:42:18 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 16:42:18 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 16:42:26 tests190: freeze> python -m pip freeze --all 16:42:26 tests_tapi: freeze> python -m pip freeze --all 16:42:26 tests121: freeze> python -m pip freeze --all 16:42:26 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 16:42:26 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi 16:42:26 using environment variables from ./karaf221.env 16:42:26 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 16:42:26 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 16:42:26 tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc 16:42:26 using environment variables from ./karafoc.env 16:42:26 pytest -q transportpce_tests/oc/test01_portmapping.py 16:42:26 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 16:42:26 tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 16:42:26 using environment variables from ./karaf121.env 16:42:26 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 16:44:07 EEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:44:09 ==================================== ERRORS ==================================== 16:44:09 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 16:44:09 16:44:09 cls = 16:44:09 16:44:09 @classmethod 16:44:09 def setUpClass(cls): 16:44:09 > cls.processes = test_utils.start_tpce() 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 16:44:09 transportpce_tests/oc/test01_portmapping.py:29: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 def start_tpce(): 16:44:09 if 'NO_ODL_STARTUP' in os.environ: 16:44:09 print('No OpenDaylight instance to start!') 16:44:09 return [] 16:44:09 print('starting OpenDaylight...') 16:44:09 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:44:09 process = start_lighty() 16:44:09 else: 16:44:09 process = start_karaf() 16:44:09 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:44:09 print('OpenDaylight started !') 16:44:09 else: 16:44:09 print('OpenDaylight failed to start !') 16:44:09 shutdown_process(process) 16:44:09 for pid in process_list: 16:44:09 shutdown_process(pid) 16:44:09 > sys.exit(1) 16:44:09 E SystemExit: 1 16:44:09 16:44:09 transportpce_tests/common/test_utils.py:232: SystemExit 16:44:09 ---------------------------- Captured stdout setup ----------------------------- 16:44:09 starting OpenDaylight... 16:44:09 starting KARAF (karafoc) TransportPCE build... 16:44:09 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:44:09 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b58788fe0> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b587ab6a0> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b5876f240> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b59f36fc0> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b587a93a0> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b58789120> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b5ae84400> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b5876f240> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:44:09 16:44:09 cls = 16:44:09 func = . at 0x7f1b58789120> 16:44:09 when = 'setup' 16:44:09 reraise = (, ) 16:44:09 16:44:09 @classmethod 16:44:09 def from_call( 16:44:09 cls, 16:44:09 func: Callable[[], TResult], 16:44:09 when: Literal["collect", "setup", "call", "teardown"], 16:44:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:09 ) -> CallInfo[TResult]: 16:44:09 """Call func, wrapping the result in a CallInfo. 16:44:09 16:44:09 :param func: 16:44:09 The function to call. Called without arguments. 16:44:09 :type func: Callable[[], _pytest.runner.TResult] 16:44:09 :param when: 16:44:09 The phase in which the function is called. 16:44:09 :param reraise: 16:44:09 Exception or exceptions that shall propagate if raised by the 16:44:09 function, instead of being wrapped in the CallInfo. 16:44:09 """ 16:44:09 excinfo = None 16:44:09 instant = timing.Instant() 16:44:09 try: 16:44:09 > result: TResult | None = func() 16:44:09 ^^^^^^ 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:09 lambda: runtest_hook(item=item, **kwds), 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:09 yield 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:09 return (yield) 16:44:09 ^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:09 item.session._setupstate.setup(item) 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:09 col.setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:09 super().setup() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:09 self._request._fillfixtures() 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:09 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:09 fixturedef = self._get_active_fixturedef(argname) 16:44:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:09 fixturedef.execute(request=subrequest) 16:44:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:09 16:44:09 self = 16:44:09 request = > 16:44:09 16:44:09 def execute(self, request: SubRequest) -> FixtureValue: 16:44:09 """Return the value of this fixture, executing it if not cached.""" 16:44:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:09 # This needs to be done before checking if we have a cached value, since 16:44:09 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:09 # parametrization, they finalize themselves and fixtures depending on it 16:44:09 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:09 # See #4871 16:44:09 requested_fixtures_that_should_finalize_us = [] 16:44:09 for argname in self.argnames: 16:44:09 fixturedef = request._get_active_fixturedef(argname) 16:44:09 # Saves requested fixtures in a list so we later can add our finalizer 16:44:09 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:09 # down first. This is generally handled by SetupState, but still currently 16:44:09 # needed when this fixture is not parametrized but depends on a parametrized 16:44:09 # fixture. 16:44:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:09 16:44:09 # Check for (and return) cached value/exception. 16:44:09 if self.cached_result is not None: 16:44:09 request_cache_key = self.cache_key(request) 16:44:09 cache_key = self.cached_result[1] 16:44:09 try: 16:44:09 # Attempt to make a normal == check: this might fail for objects 16:44:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:09 cache_hit = bool(request_cache_key == cache_key) 16:44:09 except (ValueError, RuntimeError): 16:44:09 # If the comparison raises, use 'is' as fallback. 16:44:09 cache_hit = request_cache_key is cache_key 16:44:09 16:44:09 if cache_hit: 16:44:09 if self.cached_result[2] is not None: 16:44:09 exc, exc_tb = self.cached_result[2] 16:44:09 raise exc.with_traceback(exc_tb) 16:44:09 else: 16:44:09 return self.cached_result[0] 16:44:09 # We have a previous but differently parametrized fixture instance 16:44:09 # so we need to tear it down before creating a new one. 16:44:09 self.finish(request) 16:44:09 assert self.cached_result is None 16:44:09 16:44:09 # Add finalizer to requested fixtures we saved previously. 16:44:09 # We make sure to do this after checking for cached value to avoid 16:44:09 # adding our finalizer multiple times. (#12135) 16:44:09 finalizer = functools.partial(self.finish, request=request) 16:44:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:09 parent_fixture.addfinalizer(finalizer) 16:44:09 16:44:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:09 # which is executed last. 16:44:09 > assert not self._finalizers 16:44:09 ^^^^^^^^^^^^^^^^^^^^ 16:44:09 E AssertionError 16:44:09 16:44:09 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:09 =========================== short test summary info ============================ 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 16:44:09 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:44:09 10 errors in 102.14s (0:01:42) 16:44:09 tests190: exit 1 (102.45 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc pid=4468 16:44:09 EEtests190: FAIL ✖ in 1 minute 51.79 seconds 16:44:09 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 16:44:09 EEEEEEEEEEEEEEEEEEE [100%] 16:44:11 ==================================== ERRORS ==================================== 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 16:44:11 16:44:11 cls = 16:44:11 16:44:11 @classmethod 16:44:11 def setUpClass(cls): 16:44:11 > cls.processes = test_utils.start_tpce() 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 16:44:11 transportpce_tests/1.2.1/test01_portmapping.py:33: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 def start_tpce(): 16:44:11 if 'NO_ODL_STARTUP' in os.environ: 16:44:11 print('No OpenDaylight instance to start!') 16:44:11 return [] 16:44:11 print('starting OpenDaylight...') 16:44:11 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:44:11 process = start_lighty() 16:44:11 else: 16:44:11 process = start_karaf() 16:44:11 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:44:11 print('OpenDaylight started !') 16:44:11 else: 16:44:11 print('OpenDaylight failed to start !') 16:44:11 shutdown_process(process) 16:44:11 for pid in process_list: 16:44:11 shutdown_process(pid) 16:44:11 > sys.exit(1) 16:44:11 E SystemExit: 1 16:44:11 16:44:11 transportpce_tests/common/test_utils.py:232: SystemExit 16:44:11 ---------------------------- Captured stdout setup ----------------------------- 16:44:11 starting OpenDaylight... 16:44:11 starting KARAF (karaf121) TransportPCE build... 16:44:11 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:44:11 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b1760> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e3560> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff920a3b740> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91f07b560> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b13a0> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b1580> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e3600> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e28e0> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e2de0> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e3600> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e2f20> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b1580> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e2de0> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e2f20> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b1800> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b1bc0> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b1da0> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8e2840> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d4b5d00> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 16:44:11 16:44:11 cls = 16:44:11 func = . at 0x7ff91d8b1bc0> 16:44:11 when = 'setup' 16:44:11 reraise = (, ) 16:44:11 16:44:11 @classmethod 16:44:11 def from_call( 16:44:11 cls, 16:44:11 func: Callable[[], TResult], 16:44:11 when: Literal["collect", "setup", "call", "teardown"], 16:44:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:11 ) -> CallInfo[TResult]: 16:44:11 """Call func, wrapping the result in a CallInfo. 16:44:11 16:44:11 :param func: 16:44:11 The function to call. Called without arguments. 16:44:11 :type func: Callable[[], _pytest.runner.TResult] 16:44:11 :param when: 16:44:11 The phase in which the function is called. 16:44:11 :param reraise: 16:44:11 Exception or exceptions that shall propagate if raised by the 16:44:11 function, instead of being wrapped in the CallInfo. 16:44:11 """ 16:44:11 excinfo = None 16:44:11 instant = timing.Instant() 16:44:11 try: 16:44:11 > result: TResult | None = func() 16:44:11 ^^^^^^ 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:11 lambda: runtest_hook(item=item, **kwds), 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:11 yield 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:11 return (yield) 16:44:11 ^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:11 item.session._setupstate.setup(item) 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:11 col.setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:11 super().setup() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:11 self._request._fillfixtures() 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:11 fixturedef = self._get_active_fixturedef(argname) 16:44:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:11 fixturedef.execute(request=subrequest) 16:44:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:11 16:44:11 self = 16:44:11 request = > 16:44:11 16:44:11 def execute(self, request: SubRequest) -> FixtureValue: 16:44:11 """Return the value of this fixture, executing it if not cached.""" 16:44:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:11 # This needs to be done before checking if we have a cached value, since 16:44:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:11 # parametrization, they finalize themselves and fixtures depending on it 16:44:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:11 # See #4871 16:44:11 requested_fixtures_that_should_finalize_us = [] 16:44:11 for argname in self.argnames: 16:44:11 fixturedef = request._get_active_fixturedef(argname) 16:44:11 # Saves requested fixtures in a list so we later can add our finalizer 16:44:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:11 # down first. This is generally handled by SetupState, but still currently 16:44:11 # needed when this fixture is not parametrized but depends on a parametrized 16:44:11 # fixture. 16:44:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:11 16:44:11 # Check for (and return) cached value/exception. 16:44:11 if self.cached_result is not None: 16:44:11 request_cache_key = self.cache_key(request) 16:44:11 cache_key = self.cached_result[1] 16:44:11 try: 16:44:11 # Attempt to make a normal == check: this might fail for objects 16:44:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:11 cache_hit = bool(request_cache_key == cache_key) 16:44:11 except (ValueError, RuntimeError): 16:44:11 # If the comparison raises, use 'is' as fallback. 16:44:11 cache_hit = request_cache_key is cache_key 16:44:11 16:44:11 if cache_hit: 16:44:11 if self.cached_result[2] is not None: 16:44:11 exc, exc_tb = self.cached_result[2] 16:44:11 raise exc.with_traceback(exc_tb) 16:44:11 else: 16:44:11 return self.cached_result[0] 16:44:11 # We have a previous but differently parametrized fixture instance 16:44:11 # so we need to tear it down before creating a new one. 16:44:11 self.finish(request) 16:44:11 assert self.cached_result is None 16:44:11 16:44:11 # Add finalizer to requested fixtures we saved previously. 16:44:11 # We make sure to do this after checking for cached value to avoid 16:44:11 # adding our finalizer multiple times. (#12135) 16:44:11 finalizer = functools.partial(self.finish, request=request) 16:44:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:11 parent_fixture.addfinalizer(finalizer) 16:44:11 16:44:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:11 # which is executed last. 16:44:11 > assert not self._finalizers 16:44:11 ^^^^^^^^^^^^^^^^^^^^ 16:44:11 E AssertionError 16:44:11 16:44:11 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:11 =========================== short test summary info ============================ 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 16:44:11 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 16:44:11 21 errors in 104.27s (0:01:44) 16:44:11 Etests121: exit 1 (104.57 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 pid=4479 16:44:11 EEEEEEEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 53.92 seconds 16:44:17 tests71: freeze> python -m pip freeze --all 16:44:17 EEtests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:44:17 tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 16:44:17 using environment variables from ./karaf71.env 16:44:17 pytest -q transportpce_tests/7.1/test01_portmapping.py 16:44:17 EE [100%] 16:44:17 ==================================== ERRORS ==================================== 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 16:44:17 16:44:17 cls = 16:44:17 16:44:17 @classmethod 16:44:17 def setUpClass(cls): 16:44:17 cls.init_failed = False 16:44:17 os.environ['JAVA_MIN_MEM'] = '1024M' 16:44:17 os.environ['JAVA_MAX_MEM'] = '4096M' 16:44:17 > cls.processes = test_utils.start_tpce() 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 16:44:17 transportpce_tests/tapi/test01_abstracted_topology.py:148: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 def start_tpce(): 16:44:17 if 'NO_ODL_STARTUP' in os.environ: 16:44:17 print('No OpenDaylight instance to start!') 16:44:17 return [] 16:44:17 print('starting OpenDaylight...') 16:44:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:44:17 process = start_lighty() 16:44:17 else: 16:44:17 process = start_karaf() 16:44:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:44:17 print('OpenDaylight started !') 16:44:17 else: 16:44:17 print('OpenDaylight failed to start !') 16:44:17 shutdown_process(process) 16:44:17 for pid in process_list: 16:44:17 shutdown_process(pid) 16:44:17 > sys.exit(1) 16:44:17 E SystemExit: 1 16:44:17 16:44:17 transportpce_tests/common/test_utils.py:232: SystemExit 16:44:17 ---------------------------- Captured stdout setup ----------------------------- 16:44:17 starting OpenDaylight... 16:44:17 starting KARAF (karaf221) TransportPCE build... 16:44:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9451bc0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949b4c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aeac1b380> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb53740> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949b560> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949b880> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9451bc0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9451bc0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949ae80> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a660> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949ad40> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a660> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9229a80> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9450e00> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9229c60> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9450e00> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9229f80> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3aebb051c0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9229260> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae92293a0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9229120> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae922a480> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9228900> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae922aa20> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9228720> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9228ea0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9229a80> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae9229260> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae922a020> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae92294e0> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae949a700> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 16:44:17 16:44:17 cls = 16:44:17 func = . at 0x7f3ae922b560> 16:44:17 when = 'setup' 16:44:17 reraise = (, ) 16:44:17 16:44:17 @classmethod 16:44:17 def from_call( 16:44:17 cls, 16:44:17 func: Callable[[], TResult], 16:44:17 when: Literal["collect", "setup", "call", "teardown"], 16:44:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:44:17 ) -> CallInfo[TResult]: 16:44:17 """Call func, wrapping the result in a CallInfo. 16:44:17 16:44:17 :param func: 16:44:17 The function to call. Called without arguments. 16:44:17 :type func: Callable[[], _pytest.runner.TResult] 16:44:17 :param when: 16:44:17 The phase in which the function is called. 16:44:17 :param reraise: 16:44:17 Exception or exceptions that shall propagate if raised by the 16:44:17 function, instead of being wrapped in the CallInfo. 16:44:17 """ 16:44:17 excinfo = None 16:44:17 instant = timing.Instant() 16:44:17 try: 16:44:17 > result: TResult | None = func() 16:44:17 ^^^^^^ 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:44:17 lambda: runtest_hook(item=item, **kwds), 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:44:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:44:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:44:17 yield 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:44:17 return (yield) 16:44:17 ^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:44:17 item.session._setupstate.setup(item) 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:44:17 col.setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:44:17 super().setup() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:44:17 self._request._fillfixtures() 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:44:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:44:17 fixturedef = self._get_active_fixturedef(argname) 16:44:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:44:17 fixturedef.execute(request=subrequest) 16:44:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:44:17 16:44:17 self = 16:44:17 request = > 16:44:17 16:44:17 def execute(self, request: SubRequest) -> FixtureValue: 16:44:17 """Return the value of this fixture, executing it if not cached.""" 16:44:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:44:17 # This needs to be done before checking if we have a cached value, since 16:44:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:44:17 # parametrization, they finalize themselves and fixtures depending on it 16:44:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:44:17 # See #4871 16:44:17 requested_fixtures_that_should_finalize_us = [] 16:44:17 for argname in self.argnames: 16:44:17 fixturedef = request._get_active_fixturedef(argname) 16:44:17 # Saves requested fixtures in a list so we later can add our finalizer 16:44:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:44:17 # down first. This is generally handled by SetupState, but still currently 16:44:17 # needed when this fixture is not parametrized but depends on a parametrized 16:44:17 # fixture. 16:44:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:44:17 16:44:17 # Check for (and return) cached value/exception. 16:44:17 if self.cached_result is not None: 16:44:17 request_cache_key = self.cache_key(request) 16:44:17 cache_key = self.cached_result[1] 16:44:17 try: 16:44:17 # Attempt to make a normal == check: this might fail for objects 16:44:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:44:17 cache_hit = bool(request_cache_key == cache_key) 16:44:17 except (ValueError, RuntimeError): 16:44:17 # If the comparison raises, use 'is' as fallback. 16:44:17 cache_hit = request_cache_key is cache_key 16:44:17 16:44:17 if cache_hit: 16:44:17 if self.cached_result[2] is not None: 16:44:17 exc, exc_tb = self.cached_result[2] 16:44:17 raise exc.with_traceback(exc_tb) 16:44:17 else: 16:44:17 return self.cached_result[0] 16:44:17 # We have a previous but differently parametrized fixture instance 16:44:17 # so we need to tear it down before creating a new one. 16:44:17 self.finish(request) 16:44:17 assert self.cached_result is None 16:44:17 16:44:17 # Add finalizer to requested fixtures we saved previously. 16:44:17 # We make sure to do this after checking for cached value to avoid 16:44:17 # adding our finalizer multiple times. (#12135) 16:44:17 finalizer = functools.partial(self.finish, request=request) 16:44:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:44:17 parent_fixture.addfinalizer(finalizer) 16:44:17 16:44:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:44:17 # which is executed last. 16:44:17 > assert not self._finalizers 16:44:17 ^^^^^^^^^^^^^^^^^^^^ 16:44:17 E AssertionError 16:44:17 16:44:17 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:44:17 =========================== short test summary info ============================ 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 16:44:17 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 16:44:17 51 errors in 110.63s (0:01:50) 16:44:17 tests_tapi: exit 1 (110.97 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi pid=4457 16:44:18 tests_tapi: FAIL ✖ in 2 minutes 0.29 seconds 16:44:18 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 16:44:23 tests221: freeze> python -m pip freeze --all 16:44:24 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 16:44:24 tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 16:44:24 using environment variables from ./karaf221.env 16:44:24 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 16:45:58 EEEEEEEEEEEE [100%] 16:46:00 ==================================== ERRORS ==================================== 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 16:46:00 16:46:00 cls = 16:46:00 16:46:00 @classmethod 16:46:00 def setUpClass(cls): 16:46:00 > cls.processes = test_utils.start_tpce() 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 16:46:00 transportpce_tests/7.1/test01_portmapping.py:32: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 def start_tpce(): 16:46:00 if 'NO_ODL_STARTUP' in os.environ: 16:46:00 print('No OpenDaylight instance to start!') 16:46:00 return [] 16:46:00 print('starting OpenDaylight...') 16:46:00 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:46:00 process = start_lighty() 16:46:00 else: 16:46:00 process = start_karaf() 16:46:00 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:46:00 print('OpenDaylight started !') 16:46:00 else: 16:46:00 print('OpenDaylight failed to start !') 16:46:00 shutdown_process(process) 16:46:00 for pid in process_list: 16:46:00 shutdown_process(pid) 16:46:00 > sys.exit(1) 16:46:00 E SystemExit: 1 16:46:00 16:46:00 transportpce_tests/common/test_utils.py:232: SystemExit 16:46:00 ---------------------------- Captured stdout setup ----------------------------- 16:46:00 starting OpenDaylight... 16:46:00 starting KARAF (karaf71) TransportPCE build... 16:46:00 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d6182700> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d61a7740> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d889cea0> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d6182700> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d794fe20> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d6182700> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d61a7600> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d61a5d00> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d61a7920> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d61a77e0> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 16:46:00 16:46:00 cls = 16:46:00 func = . at 0x7f76d6182700> 16:46:00 when = 'setup' 16:46:00 reraise = (, ) 16:46:00 16:46:00 @classmethod 16:46:00 def from_call( 16:46:00 cls, 16:46:00 func: Callable[[], TResult], 16:46:00 when: Literal["collect", "setup", "call", "teardown"], 16:46:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:00 ) -> CallInfo[TResult]: 16:46:00 """Call func, wrapping the result in a CallInfo. 16:46:00 16:46:00 :param func: 16:46:00 The function to call. Called without arguments. 16:46:00 :type func: Callable[[], _pytest.runner.TResult] 16:46:00 :param when: 16:46:00 The phase in which the function is called. 16:46:00 :param reraise: 16:46:00 Exception or exceptions that shall propagate if raised by the 16:46:00 function, instead of being wrapped in the CallInfo. 16:46:00 """ 16:46:00 excinfo = None 16:46:00 instant = timing.Instant() 16:46:00 try: 16:46:00 > result: TResult | None = func() 16:46:00 ^^^^^^ 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:00 lambda: runtest_hook(item=item, **kwds), 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:00 yield 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:00 return (yield) 16:46:00 ^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:00 item.session._setupstate.setup(item) 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:00 col.setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:00 super().setup() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:00 self._request._fillfixtures() 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:00 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:00 fixturedef = self._get_active_fixturedef(argname) 16:46:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:00 fixturedef.execute(request=subrequest) 16:46:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:00 16:46:00 self = 16:46:00 request = > 16:46:00 16:46:00 def execute(self, request: SubRequest) -> FixtureValue: 16:46:00 """Return the value of this fixture, executing it if not cached.""" 16:46:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:00 # This needs to be done before checking if we have a cached value, since 16:46:00 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:00 # parametrization, they finalize themselves and fixtures depending on it 16:46:00 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:00 # See #4871 16:46:00 requested_fixtures_that_should_finalize_us = [] 16:46:00 for argname in self.argnames: 16:46:00 fixturedef = request._get_active_fixturedef(argname) 16:46:00 # Saves requested fixtures in a list so we later can add our finalizer 16:46:00 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:00 # down first. This is generally handled by SetupState, but still currently 16:46:00 # needed when this fixture is not parametrized but depends on a parametrized 16:46:00 # fixture. 16:46:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:00 16:46:00 # Check for (and return) cached value/exception. 16:46:00 if self.cached_result is not None: 16:46:00 request_cache_key = self.cache_key(request) 16:46:00 cache_key = self.cached_result[1] 16:46:00 try: 16:46:00 # Attempt to make a normal == check: this might fail for objects 16:46:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:00 cache_hit = bool(request_cache_key == cache_key) 16:46:00 except (ValueError, RuntimeError): 16:46:00 # If the comparison raises, use 'is' as fallback. 16:46:00 cache_hit = request_cache_key is cache_key 16:46:00 16:46:00 if cache_hit: 16:46:00 if self.cached_result[2] is not None: 16:46:00 exc, exc_tb = self.cached_result[2] 16:46:00 raise exc.with_traceback(exc_tb) 16:46:00 else: 16:46:00 return self.cached_result[0] 16:46:00 # We have a previous but differently parametrized fixture instance 16:46:00 # so we need to tear it down before creating a new one. 16:46:00 self.finish(request) 16:46:00 assert self.cached_result is None 16:46:00 16:46:00 # Add finalizer to requested fixtures we saved previously. 16:46:00 # We make sure to do this after checking for cached value to avoid 16:46:00 # adding our finalizer multiple times. (#12135) 16:46:00 finalizer = functools.partial(self.finish, request=request) 16:46:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:00 parent_fixture.addfinalizer(finalizer) 16:46:00 16:46:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:00 # which is executed last. 16:46:00 > assert not self._finalizers 16:46:00 ^^^^^^^^^^^^^^^^^^^^ 16:46:00 E AssertionError 16:46:00 16:46:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:00 =========================== short test summary info ============================ 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 16:46:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 16:46:00 12 errors in 102.59s (0:01:42) 16:46:00 tests71: exit 1 (102.93 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 pid=4622 16:46:04 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:46:11 ==================================== ERRORS ==================================== 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 16:46:11 16:46:11 cls = 16:46:11 16:46:11 @classmethod 16:46:11 def setUpClass(cls): 16:46:11 > cls.processes = test_utils.start_tpce() 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 16:46:11 transportpce_tests/2.2.1/test01_portmapping.py:33: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 def start_tpce(): 16:46:11 if 'NO_ODL_STARTUP' in os.environ: 16:46:11 print('No OpenDaylight instance to start!') 16:46:11 return [] 16:46:11 print('starting OpenDaylight...') 16:46:11 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:46:11 process = start_lighty() 16:46:11 else: 16:46:11 process = start_karaf() 16:46:11 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:46:11 print('OpenDaylight started !') 16:46:11 else: 16:46:11 print('OpenDaylight failed to start !') 16:46:11 shutdown_process(process) 16:46:11 for pid in process_list: 16:46:11 shutdown_process(pid) 16:46:11 > sys.exit(1) 16:46:11 E SystemExit: 1 16:46:11 16:46:11 transportpce_tests/common/test_utils.py:232: SystemExit 16:46:11 ---------------------------- Captured stdout setup ----------------------------- 16:46:11 starting OpenDaylight... 16:46:11 starting KARAF (karaf221) TransportPCE build... 16:46:11 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:46:11 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904f560> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c9093ec0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60ca81ea20> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60cb7644a0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90eeca0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c9093ec0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60ca81ea20> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90eccc0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904f6a0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c9093ec0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ec360> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904f6a0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ef9c0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ef880> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e020> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e020> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90efb00> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ecb80> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90efc40> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ef880> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ec360> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ef1a0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ef100> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ee5c0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90eeca0> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c90ef740> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 16:46:11 16:46:11 cls = 16:46:11 func = . at 0x7f60c904e340> 16:46:11 when = 'setup' 16:46:11 reraise = (, ) 16:46:11 16:46:11 @classmethod 16:46:11 def from_call( 16:46:11 cls, 16:46:11 func: Callable[[], TResult], 16:46:11 when: Literal["collect", "setup", "call", "teardown"], 16:46:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:46:11 ) -> CallInfo[TResult]: 16:46:11 """Call func, wrapping the result in a CallInfo. 16:46:11 16:46:11 :param func: 16:46:11 The function to call. Called without arguments. 16:46:11 :type func: Callable[[], _pytest.runner.TResult] 16:46:11 :param when: 16:46:11 The phase in which the function is called. 16:46:11 :param reraise: 16:46:11 Exception or exceptions that shall propagate if raised by the 16:46:11 function, instead of being wrapped in the CallInfo. 16:46:11 """ 16:46:11 excinfo = None 16:46:11 instant = timing.Instant() 16:46:11 try: 16:46:11 > result: TResult | None = func() 16:46:11 ^^^^^^ 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:46:11 lambda: runtest_hook(item=item, **kwds), 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:46:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:46:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:46:11 yield 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:46:11 return (yield) 16:46:11 ^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:46:11 item.session._setupstate.setup(item) 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:46:11 col.setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:46:11 super().setup() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:46:11 self._request._fillfixtures() 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:46:11 item.funcargs[argname] = self.getfixturevalue(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:46:11 fixturedef = self._get_active_fixturedef(argname) 16:46:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:46:11 fixturedef.execute(request=subrequest) 16:46:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:46:11 16:46:11 self = 16:46:11 request = > 16:46:11 16:46:11 def execute(self, request: SubRequest) -> FixtureValue: 16:46:11 """Return the value of this fixture, executing it if not cached.""" 16:46:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:46:11 # This needs to be done before checking if we have a cached value, since 16:46:11 # if a dependent fixture has their cache invalidated, e.g. due to 16:46:11 # parametrization, they finalize themselves and fixtures depending on it 16:46:11 # (which will likely include this fixture) setting `self.cached_result = None`. 16:46:11 # See #4871 16:46:11 requested_fixtures_that_should_finalize_us = [] 16:46:11 for argname in self.argnames: 16:46:11 fixturedef = request._get_active_fixturedef(argname) 16:46:11 # Saves requested fixtures in a list so we later can add our finalizer 16:46:11 # to them, ensuring that if a requested fixture gets torn down we get torn 16:46:11 # down first. This is generally handled by SetupState, but still currently 16:46:11 # needed when this fixture is not parametrized but depends on a parametrized 16:46:11 # fixture. 16:46:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:46:11 16:46:11 # Check for (and return) cached value/exception. 16:46:11 if self.cached_result is not None: 16:46:11 request_cache_key = self.cache_key(request) 16:46:11 cache_key = self.cached_result[1] 16:46:11 try: 16:46:11 # Attempt to make a normal == check: this might fail for objects 16:46:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:46:11 cache_hit = bool(request_cache_key == cache_key) 16:46:11 except (ValueError, RuntimeError): 16:46:11 # If the comparison raises, use 'is' as fallback. 16:46:11 cache_hit = request_cache_key is cache_key 16:46:11 16:46:11 if cache_hit: 16:46:11 if self.cached_result[2] is not None: 16:46:11 exc, exc_tb = self.cached_result[2] 16:46:11 raise exc.with_traceback(exc_tb) 16:46:11 else: 16:46:11 return self.cached_result[0] 16:46:11 # We have a previous but differently parametrized fixture instance 16:46:11 # so we need to tear it down before creating a new one. 16:46:11 self.finish(request) 16:46:11 assert self.cached_result is None 16:46:11 16:46:11 # Add finalizer to requested fixtures we saved previously. 16:46:11 # We make sure to do this after checking for cached value to avoid 16:46:11 # adding our finalizer multiple times. (#12135) 16:46:11 finalizer = functools.partial(self.finish, request=request) 16:46:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:46:11 parent_fixture.addfinalizer(finalizer) 16:46:11 16:46:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:46:11 # which is executed last. 16:46:11 > assert not self._finalizers 16:46:11 ^^^^^^^^^^^^^^^^^^^^ 16:46:11 E AssertionError 16:46:11 16:46:11 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:46:11 =========================== short test summary info ============================ 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 16:46:11 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 16:46:11 35 errors in 107.13s (0:01:47) 16:46:11 tests71: FAIL ✖ in 1 minute 50.99 seconds 16:46:11 tests221: exit 1 (107.46 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 pid=4689 16:46:11 tests221: FAIL ✖ in 1 minute 53.77 seconds 16:46:11 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 16:46:18 tests_hybrid: freeze> python -m pip freeze --all 16:46:18 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 16:46:18 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid 16:46:18 using environment variables from ./karaf221.env 16:46:18 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 16:47:59 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:48:08 ==================================== ERRORS ==================================== 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 16:48:08 16:48:08 cls = 16:48:08 16:48:08 @classmethod 16:48:08 def setUpClass(cls): 16:48:08 > cls.processes = test_utils.start_tpce() 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 16:48:08 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 def start_tpce(): 16:48:08 if 'NO_ODL_STARTUP' in os.environ: 16:48:08 print('No OpenDaylight instance to start!') 16:48:08 return [] 16:48:08 print('starting OpenDaylight...') 16:48:08 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:48:08 process = start_lighty() 16:48:08 else: 16:48:08 process = start_karaf() 16:48:08 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:48:08 print('OpenDaylight started !') 16:48:08 else: 16:48:08 print('OpenDaylight failed to start !') 16:48:08 shutdown_process(process) 16:48:08 for pid in process_list: 16:48:08 shutdown_process(pid) 16:48:08 > sys.exit(1) 16:48:08 E SystemExit: 1 16:48:08 16:48:08 transportpce_tests/common/test_utils.py:232: SystemExit 16:48:08 ---------------------------- Captured stdout setup ----------------------------- 16:48:08 starting OpenDaylight... 16:48:08 starting KARAF (karaf221) TransportPCE build... 16:48:08 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb1a3e0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76ac0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3d2967a0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb1bba0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb1bf60> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb1bba0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb763e0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8360> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3e1dd8a0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb1bf60> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77420> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8040> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3e1dd8a0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77880> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3e1dd8a0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8220> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77880> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3e1dd8a0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8220> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8220> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb74040> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb74040> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76660> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76de0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76ca0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77d80> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb776a0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77c40> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77600> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77740> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77d80> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76ca0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb74040> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77740> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb77880> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76660> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76b60> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb76de0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bad8400> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 16:48:08 16:48:08 cls = 16:48:08 func = . at 0x7f5a3bb763e0> 16:48:08 when = 'setup' 16:48:08 reraise = (, ) 16:48:08 16:48:08 @classmethod 16:48:08 def from_call( 16:48:08 cls, 16:48:08 func: Callable[[], TResult], 16:48:08 when: Literal["collect", "setup", "call", "teardown"], 16:48:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:48:08 ) -> CallInfo[TResult]: 16:48:08 """Call func, wrapping the result in a CallInfo. 16:48:08 16:48:08 :param func: 16:48:08 The function to call. Called without arguments. 16:48:08 :type func: Callable[[], _pytest.runner.TResult] 16:48:08 :param when: 16:48:08 The phase in which the function is called. 16:48:08 :param reraise: 16:48:08 Exception or exceptions that shall propagate if raised by the 16:48:08 function, instead of being wrapped in the CallInfo. 16:48:08 """ 16:48:08 excinfo = None 16:48:08 instant = timing.Instant() 16:48:08 try: 16:48:08 > result: TResult | None = func() 16:48:08 ^^^^^^ 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:48:08 lambda: runtest_hook(item=item, **kwds), 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:48:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:48:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:48:08 yield 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:48:08 return (yield) 16:48:08 ^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:48:08 item.session._setupstate.setup(item) 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:48:08 col.setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:48:08 super().setup() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:48:08 self._request._fillfixtures() 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:48:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:48:08 fixturedef = self._get_active_fixturedef(argname) 16:48:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:48:08 fixturedef.execute(request=subrequest) 16:48:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:48:08 16:48:08 self = 16:48:08 request = > 16:48:08 16:48:08 def execute(self, request: SubRequest) -> FixtureValue: 16:48:08 """Return the value of this fixture, executing it if not cached.""" 16:48:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:48:08 # This needs to be done before checking if we have a cached value, since 16:48:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:48:08 # parametrization, they finalize themselves and fixtures depending on it 16:48:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:48:08 # See #4871 16:48:08 requested_fixtures_that_should_finalize_us = [] 16:48:08 for argname in self.argnames: 16:48:08 fixturedef = request._get_active_fixturedef(argname) 16:48:08 # Saves requested fixtures in a list so we later can add our finalizer 16:48:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:48:08 # down first. This is generally handled by SetupState, but still currently 16:48:08 # needed when this fixture is not parametrized but depends on a parametrized 16:48:08 # fixture. 16:48:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:48:08 16:48:08 # Check for (and return) cached value/exception. 16:48:08 if self.cached_result is not None: 16:48:08 request_cache_key = self.cache_key(request) 16:48:08 cache_key = self.cached_result[1] 16:48:08 try: 16:48:08 # Attempt to make a normal == check: this might fail for objects 16:48:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:48:08 cache_hit = bool(request_cache_key == cache_key) 16:48:08 except (ValueError, RuntimeError): 16:48:08 # If the comparison raises, use 'is' as fallback. 16:48:08 cache_hit = request_cache_key is cache_key 16:48:08 16:48:08 if cache_hit: 16:48:08 if self.cached_result[2] is not None: 16:48:08 exc, exc_tb = self.cached_result[2] 16:48:08 raise exc.with_traceback(exc_tb) 16:48:08 else: 16:48:08 return self.cached_result[0] 16:48:08 # We have a previous but differently parametrized fixture instance 16:48:08 # so we need to tear it down before creating a new one. 16:48:08 self.finish(request) 16:48:08 assert self.cached_result is None 16:48:08 16:48:08 # Add finalizer to requested fixtures we saved previously. 16:48:08 # We make sure to do this after checking for cached value to avoid 16:48:08 # adding our finalizer multiple times. (#12135) 16:48:08 finalizer = functools.partial(self.finish, request=request) 16:48:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:48:08 parent_fixture.addfinalizer(finalizer) 16:48:08 16:48:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:48:08 # which is executed last. 16:48:08 > assert not self._finalizers 16:48:08 ^^^^^^^^^^^^^^^^^^^^ 16:48:08 E AssertionError 16:48:08 16:48:08 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:48:08 =========================== short test summary info ============================ 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 16:48:08 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 16:48:08 51 errors in 110.12s (0:01:50) 16:48:09 tests_hybrid: exit 1 (110.40 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid pid=4806 16:48:09 buildcontroller: FAIL code 1 (21.26=setup[8.94]+cmd[12.32] seconds) 16:48:09 sims: OK (23.16=setup[6.67]+cmd[16.49] seconds) 16:48:09 build_karaf_tests121: FAIL code 127 (16.40=setup[7.51]+cmd[8.89] seconds) 16:48:09 testsPCE: FAIL code 1 (179.01=setup[54.52]+cmd[124.49] seconds) 16:48:09 tests121: FAIL code 1 (113.92=setup[9.35]+cmd[104.57] seconds) 16:48:09 build_karaf_tests221: FAIL code 127 (14.46=setup[7.83]+cmd[6.63] seconds) 16:48:09 tests_tapi: FAIL code 1 (120.29=setup[9.32]+cmd[110.97] seconds) 16:48:09 tests221: FAIL code 1 (113.77=setup[6.31]+cmd[107.46] seconds) 16:48:09 build_karaf_tests71: FAIL code 127 (14.68=setup[8.57]+cmd[6.11] seconds) 16:48:09 tests71: FAIL code 1 (110.99=setup[8.06]+cmd[102.93] seconds) 16:48:09 build_karaf_tests190: FAIL code 127 (14.53=setup[8.36]+cmd[6.17] seconds) 16:48:09 tests190: FAIL code 1 (111.79=setup[9.34]+cmd[102.45] seconds) 16:48:09 tests_hybrid: FAIL code 1 (117.45=setup[7.05]+cmd[110.40] seconds) 16:48:09 buildlighty: FAIL code 9 (18.54=setup[6.91]+cmd[11.63] seconds) 16:48:09 docs: OK (21.61=setup[18.74]+cmd[2.87] seconds) 16:48:09 docs-linkcheck: OK (23.91=setup[19.16]+cmd[4.75] seconds) 16:48:09 checkbashisms: OK (3.28=setup[2.08]+cmd[0.01,0.04,1.15] seconds) 16:48:09 pre-commit: OK (50.65=setup[3.16]+cmd[0.00,0.00,38.81,8.67] seconds) 16:48:09 pylint: OK (33.42=setup[3.57]+cmd[29.84] seconds) 16:48:09 evaluation failed :( (584.53 seconds) 16:48:09 + tox_status=1 16:48:09 + echo '---> Completed tox runs' 16:48:09 ---> Completed tox runs 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/build_karaf_tests121/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=build_karaf_tests121 16:48:09 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests121 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/build_karaf_tests190/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=build_karaf_tests190 16:48:09 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests190 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/build_karaf_tests221/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=build_karaf_tests221 16:48:09 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests221 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/build_karaf_tests71/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=build_karaf_tests71 16:48:09 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests71 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/buildcontroller/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=buildcontroller 16:48:09 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildcontroller 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/buildlighty/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=buildlighty 16:48:09 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildlighty 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/checkbashisms/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=checkbashisms 16:48:09 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/checkbashisms 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/docs-linkcheck/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=docs-linkcheck 16:48:09 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs-linkcheck 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/docs/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=docs 16:48:09 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/pre-commit/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=pre-commit 16:48:09 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pre-commit 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/pylint/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=pylint 16:48:09 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pylint 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/sims/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=sims 16:48:09 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/sims 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/tests121/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=tests121 16:48:09 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests121 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/tests190/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=tests190 16:48:09 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests190 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/tests221/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=tests221 16:48:09 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests221 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/tests71/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=tests71 16:48:09 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests71 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/testsPCE/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=testsPCE 16:48:09 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/testsPCE 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/tests_hybrid/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=tests_hybrid 16:48:09 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_hybrid 16:48:09 + for i in .tox/*/log 16:48:09 ++ echo .tox/tests_tapi/log 16:48:09 ++ awk -F/ '{print $2}' 16:48:09 + tox_env=tests_tapi 16:48:09 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_tapi 16:48:09 + DOC_DIR=docs/_build/html 16:48:09 + [[ -d docs/_build/html ]] 16:48:09 + echo '---> Archiving generated docs' 16:48:09 ---> Archiving generated docs 16:48:09 + mv docs/_build/html /w/workspace/transportpce-tox-verify-titanium/archives/docs 16:48:09 + echo '---> tox-run.sh ends' 16:48:09 ---> tox-run.sh ends 16:48:09 + test 1 -eq 0 16:48:09 + exit 1 16:48:09 ++ '[' 1 = 1 ']' 16:48:09 ++ '[' -x /usr/bin/clear_console ']' 16:48:09 ++ /usr/bin/clear_console -q 16:48:09 Build step 'Execute shell' marked build as failure 16:48:09 $ ssh-agent -k 16:48:09 unset SSH_AUTH_SOCK; 16:48:09 unset SSH_AGENT_PID; 16:48:09 echo Agent pid 1891 killed; 16:48:09 [ssh-agent] Stopped. 16:48:09 [PostBuildScript] - [INFO] Executing post build scripts. 16:48:09 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins14224415836691708617.sh 16:48:09 ---> sysstat.sh 16:48:10 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins7567427390643022782.sh 16:48:10 ---> package-listing.sh 16:48:10 ++ facter osfamily 16:48:10 ++ tr '[:upper:]' '[:lower:]' 16:48:10 + OS_FAMILY=debian 16:48:10 + workspace=/w/workspace/transportpce-tox-verify-titanium 16:48:10 + START_PACKAGES=/tmp/packages_start.txt 16:48:10 + END_PACKAGES=/tmp/packages_end.txt 16:48:10 + DIFF_PACKAGES=/tmp/packages_diff.txt 16:48:10 + PACKAGES=/tmp/packages_start.txt 16:48:10 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 16:48:10 + PACKAGES=/tmp/packages_end.txt 16:48:10 + case "${OS_FAMILY}" in 16:48:10 + dpkg -l 16:48:10 + grep '^ii' 16:48:10 + '[' -f /tmp/packages_start.txt ']' 16:48:10 + '[' -f /tmp/packages_end.txt ']' 16:48:10 + diff /tmp/packages_start.txt /tmp/packages_end.txt 16:48:10 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 16:48:10 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/ 16:48:10 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-titanium/archives/ 16:48:10 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins139030864422067223.sh 16:48:10 ---> capture-instance-metadata.sh 16:48:10 Setup pyenv: 16:48:10 system 16:48:10 3.8.20 16:48:10 3.9.20 16:48:10 3.10.15 16:48:10 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 16:48:10 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-jQEt from file:/tmp/.os_lf_venv 16:48:10 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:48:12 lf-activate-venv(): INFO: Installing additional packages: lftools 16:48:23 lf-activate-venv(): INFO: Adding /tmp/venv-jQEt/bin to PATH 16:48:23 INFO: Running in OpenStack, capturing instance metadata 16:48:23 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins9501513873699824150.sh 16:48:23 provisioning config files... 16:48:24 Could not find credentials [logs] for transportpce-tox-verify-titanium #44 16:48:24 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-titanium@tmp/config5567445937843403596tmp 16:48:24 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 16:48:24 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 16:48:24 provisioning config files... 16:48:24 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 16:48:24 [EnvInject] - Injecting environment variables from a build step. 16:48:24 [EnvInject] - Injecting as environment variables the properties content 16:48:24 SERVER_ID=logs 16:48:24 16:48:24 [EnvInject] - Variables injected successfully. 16:48:24 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins2464750481160023200.sh 16:48:24 ---> create-netrc.sh 16:48:24 WARN: Log server credential not found. 16:48:24 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins12146527724373054806.sh 16:48:24 ---> python-tools-install.sh 16:48:24 Setup pyenv: 16:48:24 system 16:48:24 3.8.20 16:48:24 3.9.20 16:48:24 3.10.15 16:48:24 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 16:48:24 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-jQEt from file:/tmp/.os_lf_venv 16:48:24 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:48:26 lf-activate-venv(): INFO: Installing additional packages: lftools 16:48:35 lf-activate-venv(): INFO: Adding /tmp/venv-jQEt/bin to PATH 16:48:35 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins17961333957211948663.sh 16:48:35 ---> uv-install.sh 16:48:35 uv 0.12.9 is already installed 16:48:35 uvx 0.12.9 (x86_64-unknown-linux-gnu) 16:48:35 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins13942540360218489534.sh 16:48:35 ---> sudo-logs.sh 16:48:35 Archiving 'sudo' log.. 16:48:35 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins3564016136171284865.sh 16:48:35 ---> job-cost.sh 16:48:35 INFO: Activating Python virtual environment... 16:48:35 Setup pyenv: 16:48:35 system 16:48:35 3.8.20 16:48:35 3.9.20 16:48:35 3.10.15 16:48:35 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 16:48:36 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-jQEt from file:/tmp/.os_lf_venv 16:48:36 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:48:37 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 16:48:44 lf-activate-venv(): INFO: Adding /tmp/venv-jQEt/bin to PATH 16:48:44 INFO: No stack-cost file found 16:48:44 INFO: Instance uptime: 1297s 16:48:44 INFO: Fetching instance metadata (attempt 1 of 3)... 16:48:44 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 16:48:45 INFO: Successfully fetched instance metadata 16:48:45 INFO: Instance type: v3-standard-4 16:48:45 INFO: Retrieving pricing info for: v3-standard-4 16:48:45 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 16:48:45 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=1297 16:48:45 INFO: Successfully fetched Vexxhost pricing API 16:48:45 INFO: Retrieved cost: 0.11 16:48:45 INFO: Retrieved resource: v3-standard-4 16:48:45 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-titanium/archives/cost 16:48:45 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-titanium/archives/cost.csv 16:48:45 INFO: Successfully archived job cost data 16:48:45 DEBUG: Cost data: transportpce-tox-verify-titanium,44,2026-09-02 16:48:45,v3-standard-4,1297,0.11,0.00,FAILURE 16:48:45 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins9070910540053640543.sh 16:48:45 ---> logs-deploy.sh 16:48:45 Setup pyenv: 16:48:45 system 16:48:45 3.8.20 16:48:45 3.9.20 16:48:45 3.10.15 16:48:45 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 16:48:45 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-jQEt from file:/tmp/.os_lf_venv 16:48:45 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:48:47 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 16:48:58 lf-activate-venv(): INFO: Adding /tmp/venv-jQEt/bin to PATH 16:48:58 WARNING: Nexus logging server not set 16:48:58 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-titanium/44/ 16:48:58 INFO: archiving logs to S3 16:48:59 ---> uname -a: 16:48:59 Linux prd-ubuntu2204-docker-4c-16g-46902 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 16:48:59 16:48:59 16:48:59 ---> lscpu: 16:48:59 Architecture: x86_64 16:48:59 CPU op-mode(s): 32-bit, 64-bit 16:48:59 Address sizes: 40 bits physical, 48 bits virtual 16:48:59 Byte Order: Little Endian 16:48:59 CPU(s): 4 16:48:59 On-line CPU(s) list: 0-3 16:48:59 Vendor ID: AuthenticAMD 16:48:59 Model name: AMD EPYC-Rome Processor 16:48:59 CPU family: 23 16:48:59 Model: 49 16:48:59 Thread(s) per core: 1 16:48:59 Core(s) per socket: 1 16:48:59 Socket(s): 4 16:48:59 Stepping: 0 16:48:59 BogoMIPS: 5600.00 16:48:59 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 16:48:59 Virtualization: AMD-V 16:48:59 Hypervisor vendor: KVM 16:48:59 Virtualization type: full 16:48:59 L1d cache: 128 KiB (4 instances) 16:48:59 L1i cache: 128 KiB (4 instances) 16:48:59 L2 cache: 2 MiB (4 instances) 16:48:59 L3 cache: 64 MiB (4 instances) 16:48:59 NUMA node(s): 1 16:48:59 NUMA node0 CPU(s): 0-3 16:48:59 Vulnerability Gather data sampling: Not affected 16:48:59 Vulnerability Indirect target selection: Not affected 16:48:59 Vulnerability Itlb multihit: Not affected 16:48:59 Vulnerability L1tf: Not affected 16:48:59 Vulnerability Mds: Not affected 16:48:59 Vulnerability Meltdown: Not affected 16:48:59 Vulnerability Mmio stale data: Not affected 16:48:59 Vulnerability Reg file data sampling: Not affected 16:48:59 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 16:48:59 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 16:48:59 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 16:48:59 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 16:48:59 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 16:48:59 Vulnerability Srbds: Not affected 16:48:59 Vulnerability Tsa: Not affected 16:48:59 Vulnerability Tsx async abort: Not affected 16:48:59 Vulnerability Vmscape: Not affected 16:48:59 16:48:59 16:48:59 ---> nproc: 16:48:59 4 16:48:59 16:48:59 16:48:59 ---> df -h: 16:48:59 Filesystem Size Used Avail Use% Mounted on 16:48:59 tmpfs 1.6G 1.1M 1.6G 1% /run 16:48:59 /dev/vda1 78G 12G 67G 15% / 16:48:59 tmpfs 7.9G 0 7.9G 0% /dev/shm 16:48:59 tmpfs 5.0M 0 5.0M 0% /run/lock 16:48:59 /dev/vda15 105M 6.1M 99M 6% /boot/efi 16:48:59 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 16:48:59 16:48:59 16:48:59 ---> free -m: 16:48:59 total used free shared buff/cache available 16:48:59 Mem: 15989 717 9454 4 5817 14928 16:48:59 Swap: 1023 0 1023 16:48:59 16:48:59 16:48:59 ---> ip addr: 16:48:59 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 16:48:59 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 16:48:59 inet 127.0.0.1/8 scope host lo 16:48:59 valid_lft forever preferred_lft forever 16:48:59 inet6 ::1/128 scope host 16:48:59 valid_lft forever preferred_lft forever 16:48:59 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 16:48:59 link/ether fa:16:3e:a2:94:aa brd ff:ff:ff:ff:ff:ff 16:48:59 altname enp0s3 16:48:59 inet 10.30.171.79/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 16:48:59 valid_lft 85098sec preferred_lft 85098sec 16:48:59 inet6 fe80::f816:3eff:fea2:94aa/64 scope link 16:48:59 valid_lft forever preferred_lft forever 16:48:59 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 16:48:59 link/ether 46:09:e2:1a:17:aa brd ff:ff:ff:ff:ff:ff 16:48:59 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 16:48:59 valid_lft forever preferred_lft forever 16:48:59 16:48:59 16:48:59 ---> sar -b -r -n DEV: 16:48:59 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-46902) 09/02/26 _x86_64_ (4 CPU) 16:48:59 16:48:59 16:27:18 LINUX RESTART (4 CPU) 16:48:59 16:48:59 16:30:07 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 16:48:59 16:40:00 70.38 3.43 63.71 3.24 394.73 8793.96 11187.81 16:48:59 Average: 70.38 3.43 63.71 3.24 394.73 8793.96 11187.81 16:48:59 16:48:59 16:30:07 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 16:48:59 16:40:00 10235836 15242772 706256 4.31 171284 4847828 1459048 8.37 611740 5007880 738036 16:48:59 Average: 10235836 15242772 706256 4.31 171284 4847828 1459048 8.37 611740 5007880 738036 16:48:59 16:48:59 16:30:07 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 16:48:59 16:40:00 lo 0.96 0.96 0.10 0.10 0.00 0.00 0.00 0.00 16:48:59 16:40:00 ens3 130.14 90.68 1418.07 12.29 0.00 0.00 0.00 0.00 16:48:59 16:40:00 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 16:48:59 Average: lo 0.96 0.96 0.10 0.10 0.00 0.00 0.00 0.00 16:48:59 Average: ens3 130.14 90.68 1418.07 12.29 0.00 0.00 0.00 0.00 16:48:59 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 16:48:59 16:48:59 16:48:59 ---> sar -P ALL: 16:48:59 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-46902) 09/02/26 _x86_64_ (4 CPU) 16:48:59 16:48:59 16:27:18 LINUX RESTART (4 CPU) 16:48:59 16:48:59 16:30:07 CPU %user %nice %system %iowait %steal %idle 16:48:59 16:40:00 all 12.88 0.00 1.29 0.59 0.01 85.22 16:48:59 16:40:00 0 16.23 0.00 1.43 0.57 0.01 81.76 16:48:59 16:40:00 1 10.94 0.00 1.35 1.07 0.01 86.63 16:48:59 16:40:00 2 11.12 0.00 1.03 0.22 0.01 87.62 16:48:59 16:40:00 3 13.24 0.00 1.36 0.51 0.01 84.88 16:48:59 Average: all 12.88 0.00 1.29 0.59 0.01 85.22 16:48:59 Average: 0 16.23 0.00 1.43 0.57 0.01 81.76 16:48:59 Average: 1 10.94 0.00 1.35 1.07 0.01 86.63 16:48:59 Average: 2 11.12 0.00 1.03 0.22 0.01 87.62 16:48:59 Average: 3 13.24 0.00 1.36 0.51 0.01 84.88 16:48:59 16:48:59 16:48:59