16:23:46 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125966 16:23:46 Running as SYSTEM 16:23:46 [EnvInject] - Loading node environment variables. 16:23:46 Building remotely on prd-ubuntu2204-docker-4c-16g-6407 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-chromium 16:24:03 [ssh-agent] Looking for ssh-agent implementation... 16:24:03 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:24:03 $ ssh-agent 16:24:03 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXPsGm9c/agent.1556 16:24:03 SSH_AGENT_PID=1557 16:24:03 [ssh-agent] Started. 16:24:03 Running ssh-add (command line suppressed) 16:24:03 Identity added: /w/workspace/transportpce-tox-verify-chromium@tmp/private_key_8187729830766453698.key (/w/workspace/transportpce-tox-verify-chromium@tmp/private_key_8187729830766453698.key) 16:24:03 [ssh-agent] Using credentials jenkins (jenkins-ssh) 16:24:03 The recommended git tool is: NONE 16:24:17 using credential jenkins-ssh 16:24:17 Wiping out workspace first. 16:24:17 Cloning the remote Git repository 16:24:17 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 16:24:17 > git init /w/workspace/transportpce-tox-verify-chromium # timeout=10 16:24:17 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:24:17 > git --version # timeout=10 16:24:17 > git --version # 'git version 2.34.1' 16:24:17 using GIT_SSH to set credentials jenkins-ssh 16:24:17 Verifying host key using known hosts file, will automatically accept unseen keys 16:24:17 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 16:24:21 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:24:21 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:24:21 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:24:21 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:24:21 using GIT_SSH to set credentials jenkins-ssh 16:24:21 Verifying host key using known hosts file, will automatically accept unseen keys 16:24:21 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/66/125966/1 # timeout=10 16:24:22 > git rev-parse 112310495285fd3451e8150c9a0ae990def27503^{commit} # timeout=10 16:24:22 Checking out Revision 112310495285fd3451e8150c9a0ae990def27503 (refs/changes/66/125966/1) 16:24:22 > git config core.sparsecheckout # timeout=10 16:24:22 > git checkout -f 112310495285fd3451e8150c9a0ae990def27503 # timeout=10 16:24:22 Commit message: "Bump upstream dependencies to Cr-SR1" 16:24:22 > git rev-parse FETCH_HEAD^{commit} # timeout=10 16:24:22 > git rev-list --no-walk 93f0102d5928fa071de87336557bee33e1f9a99c # timeout=10 16:24:22 > git remote # timeout=10 16:24:22 > git submodule init # timeout=10 16:24:22 > git submodule sync # timeout=10 16:24:22 > git config --get remote.origin.url # timeout=10 16:24:22 > git submodule init # timeout=10 16:24:22 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 16:24:22 ERROR: No submodules found. 16:24:26 provisioning config files... 16:24:26 copy managed file [npmrc] to file:/home/jenkins/.npmrc 16:24:26 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 16:24:26 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins10105242016191960520.sh 16:24:26 ---> python-tools-install.sh 16:24:26 Setup pyenv: 16:24:26 * system (set by /opt/pyenv/version) 16:24:26 * 3.8.20 (set by /opt/pyenv/version) 16:24:26 * 3.9.20 (set by /opt/pyenv/version) 16:24:26 3.10.15 16:24:26 3.11.10 16:24:31 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-Ros5 16:24:31 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 16:24:31 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:24:35 lf-activate-venv(): INFO: Installing additional packages: lftools 16:24:59 lf-activate-venv(): INFO: Adding /tmp/venv-Ros5/bin to PATH 16:24:59 Generating Requirements File 16:25:25 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 16:25:25 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 16:25:26 Python 3.11.10 16:25:26 pip 26.2.1 from /tmp/venv-Ros5/lib/python3.11/site-packages/pip (python 3.11) 16:25:26 aiohappyeyeballs==2.7.1 16:25:26 aiohttp==3.14.3 16:25:26 aiosignal==1.4.0 16:25:26 appdirs==1.4.4 16:25:26 argcomplete==3.7.2 16:25:26 aspy.yaml==1.3.0 16:25:26 attrs==26.1.0 16:25:26 autopage==0.6.0 16:25:26 beautifulsoup4==4.15.0 16:25:26 boto3==1.43.90 16:25:26 botocore==1.43.90 16:25:26 bs4==0.0.2 16:25:26 certifi==2026.7.22 16:25:26 cffi==2.1.1 16:25:26 cfgv==3.5.0 16:25:26 chardet==7.6.0 16:25:26 charset-normalizer==3.5.1 16:25:26 click==8.5.0 16:25:26 cliff==4.16.0 16:25:26 cmd2==4.2.4 16:25:26 cryptography==3.3.2 16:25:26 debtcollector==3.1.0 16:25:26 decorator==5.3.1 16:25:26 defusedxml==0.7.1 16:25:26 Deprecated==1.3.1 16:25:26 distlib==0.4.3 16:25:26 dnspython==2.8.0 16:25:26 docker==7.2.0 16:25:26 dogpile.cache==1.5.0 16:25:26 durationpy==0.11 16:25:26 email-validator==2.3.0 16:25:26 filelock==3.32.6 16:25:26 frozenlist==1.8.0 16:25:26 future==1.0.0 16:25:26 gitdb==4.0.12 16:25:26 GitPython==3.1.62 16:25:26 httplib2==0.30.2 16:25:26 identify==2.6.19 16:25:26 idna==3.19 16:25:26 importlib-resources==1.5.0 16:25:26 iso8601==2.1.0 16:25:26 Jinja2==3.1.6 16:25:26 jmespath==1.1.0 16:25:26 jsonpatch==1.33 16:25:26 jsonpointer==3.1.1 16:25:26 jsonschema==4.26.0 16:25:26 jsonschema-specifications==2025.9.1 16:25:26 keystoneauth1==5.17.0 16:25:26 kubernetes==36.0.3 16:25:26 lftools==0.37.23 16:25:26 lxml==6.1.3 16:25:26 markdown-it-py==4.2.0 16:25:26 MarkupSafe==3.0.3 16:25:26 mdurl==0.1.2 16:25:26 msgpack==1.2.2 16:25:26 multi_key_dict==2.0.3 16:25:26 multidict==6.8.0 16:25:26 munch==4.0.0 16:25:26 netaddr==1.3.0 16:25:26 niet==1.4.2 16:25:26 nodeenv==1.10.0 16:25:26 oauth2client==4.1.3 16:25:26 oauthlib==3.3.1 16:25:26 openstacksdk==4.20.0 16:25:26 os-service-types==1.9.0 16:25:26 osc-lib==4.7.0 16:25:26 oslo.config==10.7.0 16:25:26 oslo.context==6.5.0 16:25:26 oslo.i18n==6.9.0 16:25:26 oslo.log==8.3.1 16:25:26 oslo.serialization==5.11.0 16:25:26 oslo.utils==10.2.0 16:25:26 packaging==26.3 16:25:26 pbr==7.0.3 16:25:26 platformdirs==4.11.8 16:25:26 prettytable==3.18.0 16:25:26 prompt_toolkit==3.0.53 16:25:26 propcache==0.5.2 16:25:26 psutil==7.2.2 16:25:26 pyasn1==0.6.4 16:25:26 pyasn1_modules==0.4.2 16:25:26 pycparser==3.0 16:25:26 pygerrit2==2.0.15 16:25:26 PyGithub==2.10.0 16:25:26 Pygments==2.21.0 16:25:26 PyJWT==2.13.0 16:25:26 PyNaCl==1.6.2 16:25:26 pyparsing==2.4.7 16:25:26 pyperclip==1.11.0 16:25:26 pyrsistent==0.20.0 16:25:26 python-dateutil==2.9.0.post0 16:25:26 python-discovery==1.6.0 16:25:26 python-heatclient==5.3.0 16:25:26 python-jenkins==1.8.3 16:25:26 python-keystoneclient==6.0.0 16:25:26 python-magnumclient==5.0.0 16:25:26 python-manilaclient==6.3.0 16:25:26 python-openstackclient==10.3.0 16:25:26 python-swiftclient==4.11.0 16:25:26 PyYAML==6.0.3 16:25:26 referencing==0.37.0 16:25:26 requests==2.34.2 16:25:26 requests-oauthlib==2.0.0 16:25:26 rfc3986==2.0.0 16:25:26 rich==15.0.0 16:25:26 rich-argparse==1.8.0 16:25:26 rpds-py==2026.6.3 16:25:26 rsa==4.9.1 16:25:26 ruamel.yaml==0.19.1 16:25:26 ruamel.yaml.clib==0.2.15 16:25:26 s3transfer==0.19.2 16:25:26 simplejson==4.1.2 16:25:26 six==1.17.0 16:25:26 smmap==5.0.3 16:25:26 soupsieve==2.9.2 16:25:26 stevedore==5.9.1 16:25:26 tabulate==0.10.0 16:25:26 toml==0.10.2 16:25:26 tomlkit==0.15.1 16:25:26 tqdm==4.70.0 16:25:26 typing_extensions==4.16.0 16:25:26 urllib3==1.26.20 16:25:26 virtualenv==21.7.9 16:25:26 wcwidth==0.8.3 16:25:26 websocket-client==1.9.2 16:25:26 wrapt==2.4.0 16:25:26 xdg==6.0.0 16:25:26 xmltodict==1.0.4 16:25:26 yarl==1.24.5 16:25:26 yq==4.1.2 16:25:26 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins16649568196344053822.sh 16:25:26 ---> uv-install.sh 16:25:26 Installing uv/uvx (latest) using shell installer 16:25:27 2026-09-09 16:25:27 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-iEM8lf.sh" [1] 16:25:27 downloading uv 0.12.11 x86_64-unknown-linux-gnu 16:25:27 installing to /home/jenkins/.local/bin 16:25:27 uv 16:25:27 uvx 16:25:27 everything's installed! 16:25:28 16:25:28 To add $HOME/.local/bin to your PATH, either restart your shell or run: 16:25:28 16:25:28 source $HOME/.local/bin/env (sh, bash, zsh) 16:25:28 source $HOME/.local/bin/env.fish (fish) 16:25:28 Adding install location to PATH 16:25:28 ---> Validating uv/uvx install 16:25:28 uvx 0.12.11 (x86_64-unknown-linux-gnu) 16:25:28 [EnvInject] - Injecting environment variables from a build step. 16:25:28 [EnvInject] - Injecting as environment variables the properties content 16:25:28 PYTHON=python3 16:25:28 16:25:28 [EnvInject] - Variables injected successfully. 16:25:28 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins6594362239762723625.sh 16:25:28 ---> tox-install.sh 16:25:28 + source /home/jenkins/lf-env.sh 16:25:28 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:25:28 ++ mktemp -d /tmp/venv-XXXX 16:25:28 + lf_venv=/tmp/venv-FRph 16:25:28 + local venv_file=/tmp/.os_lf_venv 16:25:28 + local python=python3 16:25:28 + local options 16:25:28 + local set_path=true 16:25:28 + local install_args= 16:25:28 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:25:28 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:25:28 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:25:28 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:25:28 + true 16:25:28 + case $1 in 16:25:28 + venv_file=/tmp/.toxenv 16:25:28 + shift 2 16:25:28 + true 16:25:28 + case $1 in 16:25:28 + shift 16:25:28 + break 16:25:28 + case $python in 16:25:28 + local pkg_list= 16:25:28 + [[ -d /opt/pyenv ]] 16:25:28 + echo 'Setup pyenv:' 16:25:28 Setup pyenv: 16:25:28 + export PYENV_ROOT=/opt/pyenv 16:25:28 + PYENV_ROOT=/opt/pyenv 16:25:28 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 16:25:28 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 16:25:28 + pyenv versions 16:25:28 system 16:25:28 3.8.20 16:25:28 3.9.20 16:25:28 3.10.15 16:25:28 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:25:28 + command -v pyenv 16:25:28 ++ pyenv init - --no-rehash 16:25:28 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:25:28 for i in ${!paths[@]}; do 16:25:28 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:25:28 fi; done; 16:25:28 echo "${paths[*]}"'\'')" 16:25:28 export PATH="/opt/pyenv/shims:${PATH}" 16:25:28 export PYENV_SHELL=bash 16:25:28 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:25:28 pyenv() { 16:25:28 local command 16:25:28 command="${1:-}" 16:25:28 if [ "$#" -gt 0 ]; then 16:25:28 shift 16:25:28 fi 16:25:28 16:25:28 case "$command" in 16:25:28 rehash|shell) 16:25:28 eval "$(pyenv "sh-$command" "$@")" 16:25:28 ;; 16:25:28 *) 16:25:28 command pyenv "$command" "$@" 16:25:28 ;; 16:25:28 esac 16:25:28 }' 16:25:28 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:25:28 for i in ${!paths[@]}; do 16:25:28 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:25:28 fi; done; 16:25:28 echo "${paths[*]}"' 16:25:28 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 16:25:28 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 16:25:28 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 16:25:28 ++ export PYENV_SHELL=bash 16:25:28 ++ PYENV_SHELL=bash 16:25:28 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:25:28 +++ complete -F _pyenv pyenv 16:25:28 ++ lf-pyver python3 16:25:28 ++ local py_version_xy=python3 16:25:28 ++ local py_version_xyz= 16:25:28 ++ pyenv versions 16:25:28 ++ local command 16:25:28 ++ sed 's/^[ *]* //' 16:25:28 ++ command=versions 16:25:28 ++ '[' 1 -gt 0 ']' 16:25:28 ++ shift 16:25:28 ++ case "$command" in 16:25:28 ++ command pyenv versions 16:25:28 ++ grep -E '^[0-9.]*[0-9]$' 16:25:28 ++ awk '{ print $1 }' 16:25:28 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:25:28 +++ grep '^3' /tmp/.pyenv_versions 16:25:28 +++ sort -V 16:25:28 +++ tail -n 1 16:25:28 ++ py_version_xyz=3.11.10 16:25:28 ++ [[ -z 3.11.10 ]] 16:25:28 ++ echo 3.11.10 16:25:28 ++ return 0 16:25:28 + pyenv local 3.11.10 16:25:28 + local command 16:25:28 + command=local 16:25:28 + '[' 2 -gt 0 ']' 16:25:28 + shift 16:25:28 + case "$command" in 16:25:28 + command pyenv local 3.11.10 16:25:28 + for arg in "$@" 16:25:28 + case $arg in 16:25:28 + pkg_list+='tox ' 16:25:28 + for arg in "$@" 16:25:28 + case $arg in 16:25:28 + pkg_list+='virtualenv ' 16:25:28 + for arg in "$@" 16:25:28 + case $arg in 16:25:28 + pkg_list+='urllib3~=1.26.15 ' 16:25:28 + [[ -f /tmp/.toxenv ]] 16:25:28 + [[ ! -f /tmp/.toxenv ]] 16:25:28 + [[ -n '' ]] 16:25:28 + python3 -m venv /tmp/venv-FRph 16:25:32 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-FRph' 16:25:32 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-FRph 16:25:32 + echo /tmp/venv-FRph 16:25:32 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 16:25:32 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 16:25:32 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:25:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:25:32 + local 'pip_opts=--upgrade --quiet' 16:25:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:25:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:25:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:25:32 + [[ -n '' ]] 16:25:32 + [[ -n '' ]] 16:25:32 + lf-venv-pip-install /tmp/venv-FRph/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:25:32 + local venv_python=/tmp/venv-FRph/bin/python3 16:25:32 + shift 16:25:32 + local upstream=https://pypi.org/simple 16:25:32 + /tmp/venv-FRph/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:25:36 + return 0 16:25:36 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:25:36 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:25:36 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:25:36 + lf-venv-pip-install /tmp/venv-FRph/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:25:36 + local venv_python=/tmp/venv-FRph/bin/python3 16:25:36 + shift 16:25:36 + local upstream=https://pypi.org/simple 16:25:36 + /tmp/venv-FRph/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:25:38 + return 0 16:25:38 + type python3 16:25:38 + true 16:25:38 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-FRph/bin to PATH' 16:25:38 lf-activate-venv(): INFO: Adding /tmp/venv-FRph/bin to PATH 16:25:38 + PATH=/tmp/venv-FRph/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:25:38 + return 0 16:25:38 + python3 --version 16:25:38 Python 3.11.10 16:25:38 + python3 -m pip --version 16:25:38 pip 26.2.1 from /tmp/venv-FRph/lib/python3.11/site-packages/pip (python 3.11) 16:25:38 + python3 -m pip freeze 16:25:39 cachetools==7.1.8 16:25:39 colorama==0.4.6 16:25:39 distlib==0.4.3 16:25:39 filelock==3.32.6 16:25:39 packaging==26.3 16:25:39 platformdirs==4.11.8 16:25:39 pluggy==1.6.0 16:25:39 pyproject-api==1.11.0 16:25:39 python-discovery==1.6.0 16:25:39 tomli_w==1.2.0 16:25:39 tox==4.61.4 16:25:39 typing_extensions==4.16.0 16:25:39 urllib3==1.26.20 16:25:39 virtualenv==21.7.9 16:25:39 [transportpce-tox-verify-chromium] $ /bin/sh -xe /tmp/jenkins15145592899449513565.sh 16:25:39 [EnvInject] - Injecting environment variables from a build step. 16:25:39 [EnvInject] - Injecting as environment variables the properties content 16:25:39 PARALLEL=True 16:25:39 16:25:39 [EnvInject] - Variables injected successfully. 16:25:39 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins7774443111175046865.sh 16:25:39 ---> tox-run.sh 16:25:39 + 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:25:39 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/tox 16:25:39 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/docs 16:25:39 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/tox 16:25:39 + cd /w/workspace/transportpce-tox-verify-chromium/. 16:25:39 + source /home/jenkins/lf-env.sh 16:25:39 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:25:39 ++ mktemp -d /tmp/venv-XXXX 16:25:39 + lf_venv=/tmp/venv-yYsx 16:25:39 + local venv_file=/tmp/.os_lf_venv 16:25:39 + local python=python3 16:25:39 + local options 16:25:39 + local set_path=true 16:25:39 + local install_args= 16:25:39 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:25:39 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:25:39 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:25:39 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:25:39 + true 16:25:39 + case $1 in 16:25:39 + venv_file=/tmp/.toxenv 16:25:39 + shift 2 16:25:39 + true 16:25:39 + case $1 in 16:25:39 + shift 16:25:39 + break 16:25:39 + case $python in 16:25:39 + local pkg_list= 16:25:39 + [[ -d /opt/pyenv ]] 16:25:39 + echo 'Setup pyenv:' 16:25:39 Setup pyenv: 16:25:39 + export PYENV_ROOT=/opt/pyenv 16:25:39 + PYENV_ROOT=/opt/pyenv 16:25:39 + 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:25:39 + 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:25:39 + pyenv versions 16:25:39 system 16:25:39 3.8.20 16:25:39 3.9.20 16:25:39 3.10.15 16:25:39 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:25:39 + command -v pyenv 16:25:39 ++ pyenv init - --no-rehash 16:25:39 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:25:39 for i in ${!paths[@]}; do 16:25:39 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:25:39 fi; done; 16:25:39 echo "${paths[*]}"'\'')" 16:25:39 export PATH="/opt/pyenv/shims:${PATH}" 16:25:39 export PYENV_SHELL=bash 16:25:39 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:25:39 pyenv() { 16:25:39 local command 16:25:39 command="${1:-}" 16:25:39 if [ "$#" -gt 0 ]; then 16:25:39 shift 16:25:39 fi 16:25:39 16:25:39 case "$command" in 16:25:39 rehash|shell) 16:25:39 eval "$(pyenv "sh-$command" "$@")" 16:25:39 ;; 16:25:39 *) 16:25:39 command pyenv "$command" "$@" 16:25:39 ;; 16:25:39 esac 16:25:39 }' 16:25:39 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:25:39 for i in ${!paths[@]}; do 16:25:39 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:25:39 fi; done; 16:25:39 echo "${paths[*]}"' 16:25:39 ++ 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:25:39 ++ 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:25:39 ++ 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:25:39 ++ export PYENV_SHELL=bash 16:25:39 ++ PYENV_SHELL=bash 16:25:39 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:25:39 +++ complete -F _pyenv pyenv 16:25:39 ++ lf-pyver python3 16:25:39 ++ local py_version_xy=python3 16:25:39 ++ local py_version_xyz= 16:25:39 ++ sed 's/^[ *]* //' 16:25:39 ++ awk '{ print $1 }' 16:25:39 ++ grep -E '^[0-9.]*[0-9]$' 16:25:39 ++ pyenv versions 16:25:39 ++ local command 16:25:39 ++ command=versions 16:25:39 ++ '[' 1 -gt 0 ']' 16:25:39 ++ shift 16:25:39 ++ case "$command" in 16:25:39 ++ command pyenv versions 16:25:39 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:25:39 +++ sort -V 16:25:39 +++ grep '^3' /tmp/.pyenv_versions 16:25:39 +++ tail -n 1 16:25:39 ++ py_version_xyz=3.11.10 16:25:39 ++ [[ -z 3.11.10 ]] 16:25:39 ++ echo 3.11.10 16:25:39 ++ return 0 16:25:39 + pyenv local 3.11.10 16:25:39 + local command 16:25:39 + command=local 16:25:39 + '[' 2 -gt 0 ']' 16:25:39 + shift 16:25:39 + case "$command" in 16:25:39 + command pyenv local 3.11.10 16:25:39 + for arg in "$@" 16:25:39 + case $arg in 16:25:39 + pkg_list+='tox ' 16:25:39 + for arg in "$@" 16:25:39 + case $arg in 16:25:39 + pkg_list+='virtualenv ' 16:25:39 + for arg in "$@" 16:25:39 + case $arg in 16:25:39 + pkg_list+='urllib3~=1.26.15 ' 16:25:39 + [[ -f /tmp/.toxenv ]] 16:25:39 ++ cat /tmp/.toxenv 16:25:39 + lf_venv=/tmp/venv-FRph 16:25:39 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-FRph from' file:/tmp/.toxenv 16:25:39 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-FRph from file:/tmp/.toxenv 16:25:39 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:25:39 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:25:39 + local 'pip_opts=--upgrade --quiet' 16:25:39 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:25:39 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:25:39 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:25:39 + [[ -n '' ]] 16:25:39 + [[ -n '' ]] 16:25:39 + lf-venv-pip-install /tmp/venv-FRph/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:25:39 + local venv_python=/tmp/venv-FRph/bin/python3 16:25:39 + shift 16:25:39 + local upstream=https://pypi.org/simple 16:25:39 + /tmp/venv-FRph/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:25:40 + return 0 16:25:40 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:25:40 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:25:40 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:25:40 + lf-venv-pip-install /tmp/venv-FRph/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:25:40 + local venv_python=/tmp/venv-FRph/bin/python3 16:25:40 + shift 16:25:40 + local upstream=https://pypi.org/simple 16:25:40 + /tmp/venv-FRph/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:25:41 + return 0 16:25:41 + type python3 16:25:41 + true 16:25:41 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-FRph/bin to PATH' 16:25:41 lf-activate-venv(): INFO: Adding /tmp/venv-FRph/bin to PATH 16:25:41 + PATH=/tmp/venv-FRph/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:25:41 + return 0 16:25:41 + [[ -d /opt/pyenv ]] 16:25:41 + echo '---> Setting up pyenv' 16:25:41 ---> Setting up pyenv 16:25:41 + export PYENV_ROOT=/opt/pyenv 16:25:41 + PYENV_ROOT=/opt/pyenv 16:25:41 + export PATH=/opt/pyenv/bin:/tmp/venv-FRph/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:25:41 + PATH=/opt/pyenv/bin:/tmp/venv-FRph/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:25:41 ++ pwd 16:25:41 + PYTHONPATH=/w/workspace/transportpce-tox-verify-chromium 16:25:41 + export PYTHONPATH 16:25:41 + export TOX_TESTENV_PASSENV=PYTHONPATH 16:25:41 + TOX_TESTENV_PASSENV=PYTHONPATH 16:25:41 + tox --version 16:25:42 4.61.4 from /tmp/venv-FRph/lib/python3.11/site-packages/tox/__init__.py 16:25:42 + PARALLEL=True 16:25:42 + TOX_OPTIONS_LIST= 16:25:42 + [[ -n '' ]] 16:25:42 + case ${PARALLEL,,} in 16:25:42 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 16:25:42 + tox --parallel auto --parallel-live 16:25:42 + tee -a /w/workspace/transportpce-tox-verify-chromium/archives/tox/tox.log 16:25:44 checkbashisms: freeze> python -m pip freeze --all 16:25:44 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:25:44 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 16:25:44 docs: install_deps> python -I -m pip install -r docs/requirements.txt 16:25:44 checkbashisms: pip==26.2.1,setuptools==84.0.0 16:25:44 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 16:25:44 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-chromium/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:25:44 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 16:25:46 checkbashisms: OK ✔ in 3.48 seconds 16:25:46 pre-commit: install_deps> python -I -m pip install pre-commit 16:25:48 pre-commit: freeze> python -m pip freeze --all 16:25:48 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.6,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.8,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.9 16:25:48 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 16:25:48 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-chromium/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:25:48 /usr/bin/cpan 16:25:48 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run --all-files --show-diff-on-failure 16:25:48 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 16:25:49 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 16:25:49 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 16:25:51 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:25:51 buildcontroller: freeze> python -m pip freeze --all 16:25:51 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:25:51 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh 16:25:51 + update-java-alternatives -l 16:25:51 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 16:25:51 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 16:25:51 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 16:25:51 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 16:25:51 update-alternatives: error: no alternatives for jaotc 16:25:51 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 16:25:51 update-alternatives: error: no alternatives for rmic 16:25:51 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 16:25:51 java -version 16:25:51 21 16:25:51 + JAVA_VER=21 16:25:51 + echo 21 16:25:51 + javac -version 16:25:51 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 16:25:52 21 16:25:52 ok, java is 21 or newer 16:25:52 + JAVAC_VER=21 16:25:52 + echo 21 16:25:52 + [ 21 -ge 21 ] 16:25:52 + [ 21 -ge 21 ] 16:25:52 + echo ok, java is 21 or newer 16:25:52 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 16:25:52 2026-09-09 16:25:52 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:25:52 + sudo mkdir -p /opt 16:25:52 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 16:25:52 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 16:25:52 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 16:25:52 + mvn --version 16:25:52 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 16:25:52 Maven home: /opt/maven 16:25:52 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 16:25:52 Default locale: en, platform encoding: UTF-8 16:25:52 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 16:25:52 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 16:25:52 NOTE: Picked up JDK_JAVA_OPTIONS: 16:25:52 --add-opens=java.base/java.io=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.lang=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.net=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.nio=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.util=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:25:52 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:25:52 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:25:52 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:25:52 -Xlog:disable 16:25:54 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 16:25:54 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 16:25:55 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 16:25:55 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 16:25:56 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 16:25:56 [INFO] Once installed this environment will be reused. 16:25:56 [INFO] This may take a few minutes... 16:25:57 docs-linkcheck: freeze> python -m pip freeze --all 16:25:57 docs: freeze> python -m pip freeze --all 16:25:57 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 16:25:57 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/linkcheck 16:25:58 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 16:25:58 docs: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/html 16:26:01 docs: OK ✔ in 19.19 seconds 16:26:01 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 16:26:03 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:26:03 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.yangtools:binding-runtime-spi:jar -> duplicate declaration of version (?) @ line 149, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 16:26:03 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar -> duplicate declaration of version (?) @ line 123, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 16:26:03 @ 16:26:03 [ERROR] The build could not read 11 projects -> [Help 1] 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-api:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/api/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-common:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/common/pom.xml) has 1 error 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:test-common:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/test-common/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-renderer:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/renderer/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-networkmodel:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/networkmodel/pom.xml) has 1 error 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-olm:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/olm/pom.xml) has 1 error 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-pce:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/pce/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-servicehandler:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/servicehandler/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-tapi:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/tapi/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-nbinotifications:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/nbinotifications/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] The project org.opendaylight.transportpce:transportpce-dmaap-client:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/dmaap-client/pom.xml) has 2 errors 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 16:26:03 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 16:26:03 [ERROR] 16:26:03 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:26:03 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:26:03 [ERROR] 16:26:03 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:26:03 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 16:26:03 docs-linkcheck: OK ✔ in 20.01 seconds 16:26:03 buildcontroller: exit 1 (11.88 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh pid=2720 16:26:03 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:26:03 [INFO] Once installed this environment will be reused. 16:26:03 [INFO] This may take a few minutes... 16:26:03 buildcontroller: FAIL ✖ in 20.86 seconds 16:26:03 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:26:03 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:26:05 pylint: freeze> python -m pip freeze --all 16:26:05 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.8,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 16:26:05 pylint: commands[0] /w/workspace/transportpce-tox-verify-chromium/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:26:08 [INFO] Installing environment for https://github.com/hhatto/autopep8. 16:26:08 [INFO] Once installed this environment will be reused. 16:26:08 [INFO] This may take a few minutes... 16:26:10 build_karaf_tests221: freeze> python -m pip freeze --all 16:26:10 build_karaf_tests121: freeze> python -m pip freeze --all 16:26:10 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:26:10 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:26:10 build karaf in karaf221 with ./karaf221.env 16:26:10 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:26:10 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:26:10 build karaf in karaf121 with ./karaf121.env 16:26:10 NOTE: Picked up JDK_JAVA_OPTIONS: 16:26:10 --add-opens=java.base/java.io=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.lang=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.net=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.nio=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:26:10 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:26:10 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:26:10 -Xlog:disable 16:26:10 NOTE: Picked up JDK_JAVA_OPTIONS: 16:26:10 --add-opens=java.base/java.io=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.lang=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.net=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.nio=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:26:10 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:26:10 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:26:10 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:26:10 -Xlog:disable 16:26:13 [INFO] Installing environment for https://github.com/perltidy/perltidy. 16:26:13 [INFO] Once installed this environment will be reused. 16:26:13 [INFO] This may take a few minutes... 16:26:20 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 16:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:20 [ERROR] -> [Help 1] 16:26:20 [ERROR] 16:26:20 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:26:20 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:26:20 [ERROR] 16:26:20 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:26:20 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:26:20 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:26:20 build_karaf_tests221: exit 127 (9.48 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3469 16:26:20 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 16:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.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:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.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:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.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:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.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:26:20 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:20 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.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:26:20 [ERROR] -> [Help 1] 16:26:20 [ERROR] 16:26:20 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:26:20 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:26:20 [ERROR] 16:26:20 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:26:20 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:26:20 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:26:20 build_karaf_tests221: FAIL ✖ in 16.7 seconds 16:26:20 build_karaf_tests121: exit 127 (9.51 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3497 16:26:20 build_karaf_tests121: FAIL ✖ in 16.73 seconds 16:26:20 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:26:20 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:26:24 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 16:26:24 [INFO] Once installed this environment will be reused. 16:26:24 [INFO] This may take a few minutes... 16:26:26 build_karaf_tests71: freeze> python -m pip freeze --all 16:26:27 build_karaf_tests190: freeze> python -m pip freeze --all 16:26:27 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:26:27 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:26:27 build karaf in karaf71 with ./karaf71.env 16:26:27 NOTE: Picked up JDK_JAVA_OPTIONS: 16:26:27 --add-opens=java.base/java.io=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.lang=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.net=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.nio=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:26:27 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:26:27 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:26:27 -Xlog:disable 16:26:27 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:26:27 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:26:27 build karaf in karafoc with ./karafoc.env 16:26:27 NOTE: Picked up JDK_JAVA_OPTIONS: 16:26:27 --add-opens=java.base/java.io=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.lang=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.net=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.nio=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:26:27 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:26:27 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:26:27 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:26:27 -Xlog:disable 16:26:28 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 16:26:28 [INFO] Once installed this environment will be reused. 16:26:28 [INFO] This may take a few minutes... 16:26:30 16:26:30 ------------------------------------ 16:26:30 Your code has been rated at 10.00/10 16:26:30 16:26:32 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 16:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.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:26:32 [ERROR] -> [Help 1] 16:26:32 [ERROR] 16:26:32 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:26:32 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:26:32 [ERROR] 16:26:32 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:26:32 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:26:32 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 16:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.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:26:32 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:26:32 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.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:26:32 [ERROR] -> [Help 1] 16:26:32 [ERROR] 16:26:32 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:26:32 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:26:32 [ERROR] 16:26:32 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:26:32 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:26:32 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:26:32 build_karaf_tests71: exit 127 (5.61 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3847 16:26:32 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:26:32 build_karaf_tests71: FAIL ✖ in 12.68 seconds 16:26:32 build_karaf_tests190: exit 127 (5.42 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3925 16:26:33 build_karaf_tests190: FAIL ✖ in 12.65 seconds 16:26:33 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:26:33 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:26:33 pylint: OK ✔ in 32.09 seconds 16:26:33 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:26:34 trim trailing whitespace.................................................Passed 16:26:34 fix end of files.........................................................Passed 16:26:34 check for added large files..............................................Passed 16:26:35 check for merge conflicts................................................Passed 16:26:35 check for case conflicts.................................................Passed 16:26:35 check json...............................................................Passed 16:26:35 mixed line ending........................................................Passed 16:26:35 Tabs remover.............................................................Passed 16:26:35 autopep8.................................................................Passed 16:26:38 perltidy.................................................................Passed 16:26:39 ShellCheck v0.11.0.......................................................buildlighty: freeze> python -m pip freeze --all 16:26:40 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:26:40 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh 16:26:40 sims: freeze> python -m pip freeze --all 16:26:40 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 16:26:41 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:26:41 sims: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./install_lightynode.sh 16:26:41 Using lighynode version 22.1.0.6 16:26:41 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 16:26:43 Passed 16:26:44 prettier.................................................................Passed 16:26:45 yamllint.................................................................Passed 16:26:46 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run gitlint-ci --hook-stage manual 16:26:46 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 16:26:46 [INFO] Once installed this environment will be reused. 16:26:46 [INFO] This may take a few minutes... 16:26:56 gitlint..................................................................Passed 16:26:56 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:13.1.0-SNAPSHOT 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-api:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-api:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-common:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-common:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-networkmodel:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-pce:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-olm:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-servicehandler:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-tapi:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.1.0-SNAPSHOT (compile) 16:26:56 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:26:56 [ERROR] -> [Help 1] 16:26:56 [ERROR] 16:26:56 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:26:56 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:26:56 [ERROR] 16:26:56 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:26:56 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:26:56 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 16:26:56 sims: OK ✔ in 14.1 seconds 16:26:56 pre-commit: OK ✔ in 1 minute 10.66 seconds 16:26:56 buildlighty: exit 9 (16.26 seconds) /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh pid=4278 16:27:23 buildlighty: FAIL ✖ in 24.18 seconds 16:27:23 testsPCE: freeze> python -m pip freeze --all 16:27:24 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:27:24 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce 16:27:24 pytest -q transportpce_tests/pce/test01_pce.py 16:29:24 EEEEEEEEEEEEEEEEEEEE [100%] 16:29:28 ==================================== ERRORS ==================================== 16:29:28 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 16:29:28 16:29:28 cls = 16:29:28 16:29:28 @classmethod 16:29:28 def setUpClass(cls): 16:29:28 # pylint: disable=bare-except 16:29:28 sample_files_parsed = False 16:29:28 time.sleep(20) 16:29:28 try: 16:29:28 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:29:28 "..", "..", "sample_configs", "honeynode-topo.json") 16:29:28 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 16:29:28 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 16:29:28 16:29:28 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:29:28 "..", "..", "sample_configs", "NW-simple-topology.json") 16:29:28 16:29:28 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 16:29:28 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 16:29:28 16:29:28 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:29:28 "..", "..", "sample_configs", "NW-for-test-5-4.json") 16:29:28 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 16:29:28 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 16:29:28 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:29:28 "..", "..", "sample_configs", "pce_portmapping_121.json") 16:29:28 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 16:29:28 cls.port_mapping_data = port_mapping.read() 16:29:28 sample_files_parsed = True 16:29:28 except PermissionError as err: 16:29:28 print("Permission Error when trying to read sample files\n", err) 16:29:28 sys.exit(2) 16:29:28 except FileNotFoundError as err: 16:29:28 print("File Not found Error when trying to read sample files\n", err) 16:29:28 sys.exit(2) 16:29:28 except: 16:29:28 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 16:29:28 sys.exit(2) 16:29:28 finally: 16:29:28 if sample_files_parsed: 16:29:28 print("sample files content loaded") 16:29:28 16:29:28 > cls.processes = test_utils.start_tpce() 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 16:29:28 transportpce_tests/pce/test01_pce.py:93: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 def start_tpce(): 16:29:28 if 'NO_ODL_STARTUP' in os.environ: 16:29:28 print('No OpenDaylight instance to start!') 16:29:28 return [] 16:29:28 print('starting OpenDaylight...') 16:29:28 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:29:28 process = start_lighty() 16:29:28 else: 16:29:28 process = start_karaf() 16:29:28 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:29:28 print('OpenDaylight started !') 16:29:28 else: 16:29:28 print('OpenDaylight failed to start !') 16:29:28 shutdown_process(process) 16:29:28 for pid in process_list: 16:29:28 shutdown_process(pid) 16:29:28 > sys.exit(1) 16:29:28 E SystemExit: 1 16:29:28 16:29:28 transportpce_tests/common/test_utils.py:232: SystemExit 16:29:28 ---------------------------- Captured stdout setup ----------------------------- 16:29:28 sample files content loaded 16:29:28 starting OpenDaylight... 16:29:28 starting KARAF (karaf) TransportPCE build... 16:29:28 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:29:28 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca89f2e0> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8af4c0> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca86ff60> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca89f2e0> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ccd39120> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca89f2e0> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8add00> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8afa60> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca86ff60> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8afb00> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8af380> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca86ff60> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8aefc0> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8adda0> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8afd80> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8afb00> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca86fe20> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca86fce0> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 16:29:28 16:29:28 cls = 16:29:28 func = . at 0x7ff8ca8afc40> 16:29:28 when = 'setup' 16:29:28 reraise = (, ) 16:29:28 16:29:28 @classmethod 16:29:28 def from_call( 16:29:28 cls, 16:29:28 func: Callable[[], TResult], 16:29:28 when: Literal["collect", "setup", "call", "teardown"], 16:29:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:29:28 ) -> CallInfo[TResult]: 16:29:28 """Call func, wrapping the result in a CallInfo. 16:29:28 16:29:28 :param func: 16:29:28 The function to call. Called without arguments. 16:29:28 :type func: Callable[[], _pytest.runner.TResult] 16:29:28 :param when: 16:29:28 The phase in which the function is called. 16:29:28 :param reraise: 16:29:28 Exception or exceptions that shall propagate if raised by the 16:29:28 function, instead of being wrapped in the CallInfo. 16:29:28 """ 16:29:28 excinfo = None 16:29:28 instant = timing.Instant() 16:29:28 try: 16:29:28 > result: TResult | None = func() 16:29:28 ^^^^^^ 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:29:28 lambda: runtest_hook(item=item, **kwds), 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:29:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:29:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:29:28 yield 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:29:28 return (yield) 16:29:28 ^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:29:28 item.session._setupstate.setup(item) 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:29:28 col.setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:29:28 super().setup() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:29:28 self._request._fillfixtures() 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:29:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:29:28 fixturedef = self._get_active_fixturedef(argname) 16:29:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:29:28 fixturedef.execute(request=subrequest) 16:29:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:29:28 16:29:28 self = 16:29:28 request = > 16:29:28 16:29:28 def execute(self, request: SubRequest) -> FixtureValue: 16:29:28 """Return the value of this fixture, executing it if not cached.""" 16:29:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:29:28 # This needs to be done before checking if we have a cached value, since 16:29:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:29:28 # parametrization, they finalize themselves and fixtures depending on it 16:29:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:29:28 # See #4871 16:29:28 requested_fixtures_that_should_finalize_us = [] 16:29:28 for argname in self.argnames: 16:29:28 fixturedef = request._get_active_fixturedef(argname) 16:29:28 # Saves requested fixtures in a list so we later can add our finalizer 16:29:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:29:28 # down first. This is generally handled by SetupState, but still currently 16:29:28 # needed when this fixture is not parametrized but depends on a parametrized 16:29:28 # fixture. 16:29:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:29:28 16:29:28 # Check for (and return) cached value/exception. 16:29:28 if self.cached_result is not None: 16:29:28 request_cache_key = self.cache_key(request) 16:29:28 cache_key = self.cached_result[1] 16:29:28 try: 16:29:28 # Attempt to make a normal == check: this might fail for objects 16:29:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:29:28 cache_hit = bool(request_cache_key == cache_key) 16:29:28 except (ValueError, RuntimeError): 16:29:28 # If the comparison raises, use 'is' as fallback. 16:29:28 cache_hit = request_cache_key is cache_key 16:29:28 16:29:28 if cache_hit: 16:29:28 if self.cached_result[2] is not None: 16:29:28 exc, exc_tb = self.cached_result[2] 16:29:28 raise exc.with_traceback(exc_tb) 16:29:28 else: 16:29:28 return self.cached_result[0] 16:29:28 # We have a previous but differently parametrized fixture instance 16:29:28 # so we need to tear it down before creating a new one. 16:29:28 self.finish(request) 16:29:28 assert self.cached_result is None 16:29:28 16:29:28 # Add finalizer to requested fixtures we saved previously. 16:29:28 # We make sure to do this after checking for cached value to avoid 16:29:28 # adding our finalizer multiple times. (#12135) 16:29:28 finalizer = functools.partial(self.finish, request=request) 16:29:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:29:28 parent_fixture.addfinalizer(finalizer) 16:29:28 16:29:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:29:28 # which is executed last. 16:29:28 > assert not self._finalizers 16:29:28 ^^^^^^^^^^^^^^^^^^^^ 16:29:28 E AssertionError 16:29:28 16:29:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:29:28 =========================== short test summary info ============================ 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 16:29:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 16:29:28 20 errors in 124.13s (0:02:04) 16:29:28 testsPCE: exit 1 (124.44 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce pid=4681 16:29:29 testsPCE: FAIL ✖ in 2 minutes 54.79 seconds 16:29:29 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:29:29 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:29:29 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:29:36 tests_tapi: freeze> python -m pip freeze --all 16:29:36 tests121: freeze> python -m pip freeze --all 16:29:36 tests190: freeze> python -m pip freeze --all 16:29:36 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:29:36 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi 16:29:36 using environment variables from ./karaf221.env 16:29:36 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 16:29:36 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:29:36 tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 16:29:36 using environment variables from ./karaf121.env 16:29:36 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 16:29:36 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:29:36 tests190: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc 16:29:36 using environment variables from ./karafoc.env 16:29:36 pytest -q transportpce_tests/oc/test01_portmapping.py 16:31:16 EEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:31:18 ==================================== ERRORS ==================================== 16:31:18 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 16:31:18 16:31:18 cls = 16:31:18 16:31:18 @classmethod 16:31:18 def setUpClass(cls): 16:31:18 > cls.processes = test_utils.start_tpce() 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 16:31:18 transportpce_tests/oc/test01_portmapping.py:29: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 def start_tpce(): 16:31:18 if 'NO_ODL_STARTUP' in os.environ: 16:31:18 print('No OpenDaylight instance to start!') 16:31:18 return [] 16:31:18 print('starting OpenDaylight...') 16:31:18 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:31:18 process = start_lighty() 16:31:18 else: 16:31:18 process = start_karaf() 16:31:18 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:31:18 print('OpenDaylight started !') 16:31:18 else: 16:31:18 print('OpenDaylight failed to start !') 16:31:18 shutdown_process(process) 16:31:18 for pid in process_list: 16:31:18 shutdown_process(pid) 16:31:18 > sys.exit(1) 16:31:18 E SystemExit: 1 16:31:18 16:31:18 transportpce_tests/common/test_utils.py:232: SystemExit 16:31:18 ---------------------------- Captured stdout setup ----------------------------- 16:31:18 starting OpenDaylight... 16:31:18 starting KARAF (karafoc) TransportPCE build... 16:31:18 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:31:18 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b8ecf40> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b90f600> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b8d31a0> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b8ed080> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 Erequest = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37d0a2f20> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b8d31a0> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b8ecfe0> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b90fec0> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:31:18 16:31:18 cls = 16:31:18 func = . at 0x7fe37b8d31a0> 16:31:18 when = 'setup' 16:31:18 reraise = (, ) 16:31:18 16:31:18 @classmethod 16:31:18 def from_call( 16:31:18 cls, 16:31:18 func: Callable[[], TResult], 16:31:18 when: Literal["collect", "setup", "call", "teardown"], 16:31:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:18 ) -> CallInfo[TResult]: 16:31:18 """Call func, wrapping the result in a CallInfo. 16:31:18 16:31:18 :param func: 16:31:18 The function to call. Called without arguments. 16:31:18 :type func: Callable[[], _pytest.runner.TResult] 16:31:18 :param when: 16:31:18 The phase in which the function is called. 16:31:18 :param reraise: 16:31:18 Exception or exceptions that shall propagate if raised by the 16:31:18 function, instead of being wrapped in the CallInfo. 16:31:18 """ 16:31:18 excinfo = None 16:31:18 instant = timing.Instant() 16:31:18 try: 16:31:18 > result: TResult | None = func() 16:31:18 ^^^^^^ 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:18 lambda: runtest_hook(item=item, **kwds), 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:18 yield 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:18 return (yield) 16:31:18 ^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:18 item.session._setupstate.setup(item) 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:18 col.setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:18 super().setup() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:18 self._request._fillfixtures() 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:18 fixturedef = self._get_active_fixturedef(argname) 16:31:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:18 fixturedef.execute(request=subrequest) 16:31:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:18 16:31:18 self = 16:31:18 request = > 16:31:18 16:31:18 def execute(self, request: SubRequest) -> FixtureValue: 16:31:18 """Return the value of this fixture, executing it if not cached.""" 16:31:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:18 # This needs to be done before checking if we have a cached value, since 16:31:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:18 # parametrization, they finalize themselves and fixtures depending on it 16:31:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:18 # See #4871 16:31:18 requested_fixtures_that_should_finalize_us = [] 16:31:18 for argname in self.argnames: 16:31:18 fixturedef = request._get_active_fixturedef(argname) 16:31:18 # Saves requested fixtures in a list so we later can add our finalizer 16:31:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:18 # down first. This is generally handled by SetupState, but still currently 16:31:18 # needed when this fixture is not parametrized but depends on a parametrized 16:31:18 # fixture. 16:31:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:18 16:31:18 # Check for (and return) cached value/exception. 16:31:18 if self.cached_result is not None: 16:31:18 request_cache_key = self.cache_key(request) 16:31:18 cache_key = self.cached_result[1] 16:31:18 try: 16:31:18 # Attempt to make a normal == check: this might fail for objects 16:31:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:18 cache_hit = bool(request_cache_key == cache_key) 16:31:18 except (ValueError, RuntimeError): 16:31:18 # If the comparison raises, use 'is' as fallback. 16:31:18 cache_hit = request_cache_key is cache_key 16:31:18 16:31:18 if cache_hit: 16:31:18 if self.cached_result[2] is not None: 16:31:18 exc, exc_tb = self.cached_result[2] 16:31:18 raise exc.with_traceback(exc_tb) 16:31:18 else: 16:31:18 return self.cached_result[0] 16:31:18 # We have a previous but differently parametrized fixture instance 16:31:18 # so we need to tear it down before creating a new one. 16:31:18 self.finish(request) 16:31:18 assert self.cached_result is None 16:31:18 16:31:18 # Add finalizer to requested fixtures we saved previously. 16:31:18 # We make sure to do this after checking for cached value to avoid 16:31:18 # adding our finalizer multiple times. (#12135) 16:31:18 finalizer = functools.partial(self.finish, request=request) 16:31:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:18 parent_fixture.addfinalizer(finalizer) 16:31:18 16:31:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:18 # which is executed last. 16:31:18 > assert not self._finalizers 16:31:18 ^^^^^^^^^^^^^^^^^^^^ 16:31:18 E AssertionError 16:31:18 16:31:18 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:18 =========================== short test summary info ============================ 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 16:31:18 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:31:18 10 errors in 102.09s (0:01:42) 16:31:18 Etests190: exit 1 (102.35 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc pid=4808 16:31:18 Etests190: FAIL ✖ in 1 minute 50.16 seconds 16:31:18 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:31:18 EEEEEEEEEEEEEEEEEEEE [100%] 16:31:20 ==================================== ERRORS ==================================== 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 16:31:20 16:31:20 cls = 16:31:20 16:31:20 @classmethod 16:31:20 def setUpClass(cls): 16:31:20 > cls.processes = test_utils.start_tpce() 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 16:31:20 transportpce_tests/1.2.1/test01_portmapping.py:33: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 def start_tpce(): 16:31:20 if 'NO_ODL_STARTUP' in os.environ: 16:31:20 print('No OpenDaylight instance to start!') 16:31:20 return [] 16:31:20 print('starting OpenDaylight...') 16:31:20 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:31:20 process = start_lighty() 16:31:20 else: 16:31:20 process = start_karaf() 16:31:20 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:31:20 print('OpenDaylight started !') 16:31:20 else: 16:31:20 print('OpenDaylight failed to start !') 16:31:20 shutdown_process(process) 16:31:20 for pid in process_list: 16:31:20 shutdown_process(pid) 16:31:20 > sys.exit(1) 16:31:20 E SystemExit: 1 16:31:20 16:31:20 transportpce_tests/common/test_utils.py:232: SystemExit 16:31:20 ---------------------------- Captured stdout setup ----------------------------- 16:31:20 starting OpenDaylight... 16:31:20 starting KARAF (karaf121) TransportPCE build... 16:31:20 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:31:20 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f41760> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984b560> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11c9c7740> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11aff7560> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f413a0> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f41580> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984b600> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984a8e0> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984ade0> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984b600> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984af20> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f41580> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984ade0> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984af20> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f41800> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f41bc0> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f41da0> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11984a840> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe11941dd00> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 16:31:20 16:31:20 cls = 16:31:20 func = . at 0x7fe119f41bc0> 16:31:20 when = 'setup' 16:31:20 reraise = (, ) 16:31:20 16:31:20 @classmethod 16:31:20 def from_call( 16:31:20 cls, 16:31:20 func: Callable[[], TResult], 16:31:20 when: Literal["collect", "setup", "call", "teardown"], 16:31:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:20 ) -> CallInfo[TResult]: 16:31:20 """Call func, wrapping the result in a CallInfo. 16:31:20 16:31:20 :param func: 16:31:20 The function to call. Called without arguments. 16:31:20 :type func: Callable[[], _pytest.runner.TResult] 16:31:20 :param when: 16:31:20 The phase in which the function is called. 16:31:20 :param reraise: 16:31:20 Exception or exceptions that shall propagate if raised by the 16:31:20 function, instead of being wrapped in the CallInfo. 16:31:20 """ 16:31:20 excinfo = None 16:31:20 instant = timing.Instant() 16:31:20 try: 16:31:20 > result: TResult | None = func() 16:31:20 ^^^^^^ 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:20 lambda: runtest_hook(item=item, **kwds), 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:20 yield 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:20 return (yield) 16:31:20 ^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:20 item.session._setupstate.setup(item) 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:20 col.setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:20 super().setup() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:20 self._request._fillfixtures() 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:20 fixturedef = self._get_active_fixturedef(argname) 16:31:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:20 fixturedef.execute(request=subrequest) 16:31:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:20 16:31:20 self = 16:31:20 request = > 16:31:20 16:31:20 def execute(self, request: SubRequest) -> FixtureValue: 16:31:20 """Return the value of this fixture, executing it if not cached.""" 16:31:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:20 # This needs to be done before checking if we have a cached value, since 16:31:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:20 # parametrization, they finalize themselves and fixtures depending on it 16:31:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:20 # See #4871 16:31:20 requested_fixtures_that_should_finalize_us = [] 16:31:20 for argname in self.argnames: 16:31:20 fixturedef = request._get_active_fixturedef(argname) 16:31:20 # Saves requested fixtures in a list so we later can add our finalizer 16:31:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:20 # down first. This is generally handled by SetupState, but still currently 16:31:20 # needed when this fixture is not parametrized but depends on a parametrized 16:31:20 # fixture. 16:31:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:20 16:31:20 # Check for (and return) cached value/exception. 16:31:20 if self.cached_result is not None: 16:31:20 request_cache_key = self.cache_key(request) 16:31:20 cache_key = self.cached_result[1] 16:31:20 try: 16:31:20 # Attempt to make a normal == check: this might fail for objects 16:31:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:20 cache_hit = bool(request_cache_key == cache_key) 16:31:20 except (ValueError, RuntimeError): 16:31:20 # If the comparison raises, use 'is' as fallback. 16:31:20 cache_hit = request_cache_key is cache_key 16:31:20 16:31:20 if cache_hit: 16:31:20 if self.cached_result[2] is not None: 16:31:20 exc, exc_tb = self.cached_result[2] 16:31:20 raise exc.with_traceback(exc_tb) 16:31:20 else: 16:31:20 return self.cached_result[0] 16:31:20 # We have a previous but differently parametrized fixture instance 16:31:20 # so we need to tear it down before creating a new one. 16:31:20 self.finish(request) 16:31:20 assert self.cached_result is None 16:31:20 16:31:20 # Add finalizer to requested fixtures we saved previously. 16:31:20 # We make sure to do this after checking for cached value to avoid 16:31:20 # adding our finalizer multiple times. (#12135) 16:31:20 finalizer = functools.partial(self.finish, request=request) 16:31:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:20 parent_fixture.addfinalizer(finalizer) 16:31:20 16:31:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:20 # which is executed last. 16:31:20 > assert not self._finalizers 16:31:20 ^^^^^^^^^^^^^^^^^^^^ 16:31:20 E AssertionError 16:31:20 16:31:20 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:20 =========================== short test summary info ============================ 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 16:31:20 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 16:31:20 21 errors in 104.19s (0:01:44) 16:31:20 Etests121: exit 1 (104.49 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 pid=4797 16:31:21 EEEEEEEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 52.28 seconds 16:31:26 tests71: freeze> python -m pip freeze --all 16:31:26 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:31:26 tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 16:31:26 using environment variables from ./karaf71.env 16:31:26 pytest -q transportpce_tests/7.1/test01_portmapping.py 16:31:26 EEE [100%] 16:31:26 ==================================== ERRORS ==================================== 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 16:31:26 16:31:26 cls = 16:31:26 16:31:26 @classmethod 16:31:26 def setUpClass(cls): 16:31:26 cls.init_failed = False 16:31:26 os.environ['JAVA_MIN_MEM'] = '1024M' 16:31:26 os.environ['JAVA_MAX_MEM'] = '4096M' 16:31:26 > cls.processes = test_utils.start_tpce() 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 16:31:26 transportpce_tests/tapi/test01_abstracted_topology.py:148: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 def start_tpce(): 16:31:26 if 'NO_ODL_STARTUP' in os.environ: 16:31:26 print('No OpenDaylight instance to start!') 16:31:26 return [] 16:31:26 print('starting OpenDaylight...') 16:31:26 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:31:26 process = start_lighty() 16:31:26 else: 16:31:26 process = start_karaf() 16:31:26 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:31:26 print('OpenDaylight started !') 16:31:26 else: 16:31:26 print('OpenDaylight failed to start !') 16:31:26 shutdown_process(process) 16:31:26 for pid in process_list: 16:31:26 shutdown_process(pid) 16:31:26 > sys.exit(1) 16:31:26 E SystemExit: 1 16:31:26 16:31:26 transportpce_tests/common/test_utils.py:232: SystemExit 16:31:26 ---------------------------- Captured stdout setup ----------------------------- 16:31:26 starting OpenDaylight... 16:31:26 starting KARAF (karaf221) TransportPCE build... 16:31:26 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f010099dbc0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e74c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0102167380> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f010309f740> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e7560> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e7880> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f010099dbc0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f010099dbc0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6e80> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6660> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6d40> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6660> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100775a80> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f010099ce00> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100775c60> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f010099ce00> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100775f80> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01030511c0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100775260> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01007753a0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100775120> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100776480> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100774900> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100776a20> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100774720> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100774ea0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100775a80> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100775260> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100776020> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01007754e0> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f01009e6700> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 16:31:26 16:31:26 cls = 16:31:26 func = . at 0x7f0100777560> 16:31:26 when = 'setup' 16:31:26 reraise = (, ) 16:31:26 16:31:26 @classmethod 16:31:26 def from_call( 16:31:26 cls, 16:31:26 func: Callable[[], TResult], 16:31:26 when: Literal["collect", "setup", "call", "teardown"], 16:31:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:31:26 ) -> CallInfo[TResult]: 16:31:26 """Call func, wrapping the result in a CallInfo. 16:31:26 16:31:26 :param func: 16:31:26 The function to call. Called without arguments. 16:31:26 :type func: Callable[[], _pytest.runner.TResult] 16:31:26 :param when: 16:31:26 The phase in which the function is called. 16:31:26 :param reraise: 16:31:26 Exception or exceptions that shall propagate if raised by the 16:31:26 function, instead of being wrapped in the CallInfo. 16:31:26 """ 16:31:26 excinfo = None 16:31:26 instant = timing.Instant() 16:31:26 try: 16:31:26 > result: TResult | None = func() 16:31:26 ^^^^^^ 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:31:26 lambda: runtest_hook(item=item, **kwds), 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:31:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:31:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:31:26 yield 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:31:26 return (yield) 16:31:26 ^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:31:26 item.session._setupstate.setup(item) 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:31:26 col.setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:31:26 super().setup() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:31:26 self._request._fillfixtures() 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:31:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:31:26 fixturedef = self._get_active_fixturedef(argname) 16:31:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:31:26 fixturedef.execute(request=subrequest) 16:31:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:31:26 16:31:26 self = 16:31:26 request = > 16:31:26 16:31:26 def execute(self, request: SubRequest) -> FixtureValue: 16:31:26 """Return the value of this fixture, executing it if not cached.""" 16:31:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:31:26 # This needs to be done before checking if we have a cached value, since 16:31:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:31:26 # parametrization, they finalize themselves and fixtures depending on it 16:31:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:31:26 # See #4871 16:31:26 requested_fixtures_that_should_finalize_us = [] 16:31:26 for argname in self.argnames: 16:31:26 fixturedef = request._get_active_fixturedef(argname) 16:31:26 # Saves requested fixtures in a list so we later can add our finalizer 16:31:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:31:26 # down first. This is generally handled by SetupState, but still currently 16:31:26 # needed when this fixture is not parametrized but depends on a parametrized 16:31:26 # fixture. 16:31:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:31:26 16:31:26 # Check for (and return) cached value/exception. 16:31:26 if self.cached_result is not None: 16:31:26 request_cache_key = self.cache_key(request) 16:31:26 cache_key = self.cached_result[1] 16:31:26 try: 16:31:26 # Attempt to make a normal == check: this might fail for objects 16:31:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:31:26 cache_hit = bool(request_cache_key == cache_key) 16:31:26 except (ValueError, RuntimeError): 16:31:26 # If the comparison raises, use 'is' as fallback. 16:31:26 cache_hit = request_cache_key is cache_key 16:31:26 16:31:26 if cache_hit: 16:31:26 if self.cached_result[2] is not None: 16:31:26 exc, exc_tb = self.cached_result[2] 16:31:26 raise exc.with_traceback(exc_tb) 16:31:26 else: 16:31:26 return self.cached_result[0] 16:31:26 # We have a previous but differently parametrized fixture instance 16:31:26 # so we need to tear it down before creating a new one. 16:31:26 self.finish(request) 16:31:26 assert self.cached_result is None 16:31:26 16:31:26 # Add finalizer to requested fixtures we saved previously. 16:31:26 # We make sure to do this after checking for cached value to avoid 16:31:26 # adding our finalizer multiple times. (#12135) 16:31:26 finalizer = functools.partial(self.finish, request=request) 16:31:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:31:26 parent_fixture.addfinalizer(finalizer) 16:31:26 16:31:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:31:26 # which is executed last. 16:31:26 > assert not self._finalizers 16:31:26 ^^^^^^^^^^^^^^^^^^^^ 16:31:26 E AssertionError 16:31:26 16:31:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:31:26 =========================== short test summary info ============================ 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 16:31:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 16:31:26 51 errors in 110.25s (0:01:50) 16:31:26 tests_tapi: exit 1 (110.60 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi pid=4786 16:31:27 tests_tapi: FAIL ✖ in 1 minute 58.35 seconds 16:31:27 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:31:33 tests221: freeze> python -m pip freeze --all 16:31:33 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:31:33 tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 16:31:33 using environment variables from ./karaf221.env 16:31:33 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 16:33:06 EEEEEEEEEEEE [100%] 16:33:08 ==================================== ERRORS ==================================== 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 16:33:08 16:33:08 cls = 16:33:08 16:33:08 @classmethod 16:33:08 def setUpClass(cls): 16:33:08 > cls.processes = test_utils.start_tpce() 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 16:33:08 transportpce_tests/7.1/test01_portmapping.py:32: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 def start_tpce(): 16:33:08 if 'NO_ODL_STARTUP' in os.environ: 16:33:08 print('No OpenDaylight instance to start!') 16:33:08 return [] 16:33:08 print('starting OpenDaylight...') 16:33:08 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:33:08 process = start_lighty() 16:33:08 else: 16:33:08 process = start_karaf() 16:33:08 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:33:08 print('OpenDaylight started !') 16:33:08 else: 16:33:08 print('OpenDaylight failed to start !') 16:33:08 shutdown_process(process) 16:33:08 for pid in process_list: 16:33:08 shutdown_process(pid) 16:33:08 > sys.exit(1) 16:33:08 E SystemExit: 1 16:33:08 16:33:08 transportpce_tests/common/test_utils.py:232: SystemExit 16:33:08 ---------------------------- Captured stdout setup ----------------------------- 16:33:08 starting OpenDaylight... 16:33:08 starting KARAF (karaf71) TransportPCE build... 16:33:08 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff8025c6700> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff801ec3740> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff8045c0ea0> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff8025c6700> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff80367be20> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff8025c6700> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff801ec3600> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff801ec1d00> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff801ec3920> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff801ec37e0> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 16:33:08 16:33:08 cls = 16:33:08 func = . at 0x7ff8025c6700> 16:33:08 when = 'setup' 16:33:08 reraise = (, ) 16:33:08 16:33:08 @classmethod 16:33:08 def from_call( 16:33:08 cls, 16:33:08 func: Callable[[], TResult], 16:33:08 when: Literal["collect", "setup", "call", "teardown"], 16:33:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:08 ) -> CallInfo[TResult]: 16:33:08 """Call func, wrapping the result in a CallInfo. 16:33:08 16:33:08 :param func: 16:33:08 The function to call. Called without arguments. 16:33:08 :type func: Callable[[], _pytest.runner.TResult] 16:33:08 :param when: 16:33:08 The phase in which the function is called. 16:33:08 :param reraise: 16:33:08 Exception or exceptions that shall propagate if raised by the 16:33:08 function, instead of being wrapped in the CallInfo. 16:33:08 """ 16:33:08 excinfo = None 16:33:08 instant = timing.Instant() 16:33:08 try: 16:33:08 > result: TResult | None = func() 16:33:08 ^^^^^^ 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:08 lambda: runtest_hook(item=item, **kwds), 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:08 yield 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:08 return (yield) 16:33:08 ^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:08 item.session._setupstate.setup(item) 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:08 col.setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:08 super().setup() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:08 self._request._fillfixtures() 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:08 fixturedef = self._get_active_fixturedef(argname) 16:33:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:08 fixturedef.execute(request=subrequest) 16:33:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:08 16:33:08 self = 16:33:08 request = > 16:33:08 16:33:08 def execute(self, request: SubRequest) -> FixtureValue: 16:33:08 """Return the value of this fixture, executing it if not cached.""" 16:33:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:08 # This needs to be done before checking if we have a cached value, since 16:33:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:08 # parametrization, they finalize themselves and fixtures depending on it 16:33:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:08 # See #4871 16:33:08 requested_fixtures_that_should_finalize_us = [] 16:33:08 for argname in self.argnames: 16:33:08 fixturedef = request._get_active_fixturedef(argname) 16:33:08 # Saves requested fixtures in a list so we later can add our finalizer 16:33:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:08 # down first. This is generally handled by SetupState, but still currently 16:33:08 # needed when this fixture is not parametrized but depends on a parametrized 16:33:08 # fixture. 16:33:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:08 16:33:08 # Check for (and return) cached value/exception. 16:33:08 if self.cached_result is not None: 16:33:08 request_cache_key = self.cache_key(request) 16:33:08 cache_key = self.cached_result[1] 16:33:08 try: 16:33:08 # Attempt to make a normal == check: this might fail for objects 16:33:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:08 cache_hit = bool(request_cache_key == cache_key) 16:33:08 except (ValueError, RuntimeError): 16:33:08 # If the comparison raises, use 'is' as fallback. 16:33:08 cache_hit = request_cache_key is cache_key 16:33:08 16:33:08 if cache_hit: 16:33:08 if self.cached_result[2] is not None: 16:33:08 exc, exc_tb = self.cached_result[2] 16:33:08 raise exc.with_traceback(exc_tb) 16:33:08 else: 16:33:08 return self.cached_result[0] 16:33:08 # We have a previous but differently parametrized fixture instance 16:33:08 # so we need to tear it down before creating a new one. 16:33:08 self.finish(request) 16:33:08 assert self.cached_result is None 16:33:08 16:33:08 # Add finalizer to requested fixtures we saved previously. 16:33:08 # We make sure to do this after checking for cached value to avoid 16:33:08 # adding our finalizer multiple times. (#12135) 16:33:08 finalizer = functools.partial(self.finish, request=request) 16:33:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:08 parent_fixture.addfinalizer(finalizer) 16:33:08 16:33:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:08 # which is executed last. 16:33:08 > assert not self._finalizers 16:33:08 ^^^^^^^^^^^^^^^^^^^^ 16:33:08 E AssertionError 16:33:08 16:33:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:08 =========================== short test summary info ============================ 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 16:33:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 16:33:08 12 errors in 102.35s (0:01:42) 16:33:09 tests71: exit 1 (102.64 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 pid=4952 16:33:14 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:33:20 ==================================== ERRORS ==================================== 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 16:33:20 16:33:20 cls = 16:33:20 16:33:20 @classmethod 16:33:20 def setUpClass(cls): 16:33:20 > cls.processes = test_utils.start_tpce() 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 16:33:20 transportpce_tests/2.2.1/test01_portmapping.py:33: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 def start_tpce(): 16:33:20 if 'NO_ODL_STARTUP' in os.environ: 16:33:20 print('No OpenDaylight instance to start!') 16:33:20 return [] 16:33:20 print('starting OpenDaylight...') 16:33:20 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:33:20 process = start_lighty() 16:33:20 else: 16:33:20 process = start_karaf() 16:33:20 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:33:20 print('OpenDaylight started !') 16:33:20 else: 16:33:20 print('OpenDaylight failed to start !') 16:33:20 shutdown_process(process) 16:33:20 for pid in process_list: 16:33:20 shutdown_process(pid) 16:33:20 > sys.exit(1) 16:33:20 E SystemExit: 1 16:33:20 16:33:20 transportpce_tests/common/test_utils.py:232: SystemExit 16:33:20 ---------------------------- Captured stdout setup ----------------------------- 16:33:20 starting OpenDaylight... 16:33:20 starting KARAF (karaf221) TransportPCE build... 16:33:20 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:33:20 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbf560> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b95dbec0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91bad72a20> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91bbcb84a0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9636ca0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b95dbec0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91bad72a20> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9634cc0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbf6a0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b95dbec0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9634360> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbf6a0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b96379c0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9637880> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe020> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe020> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9637b00> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9634b80> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9637c40> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9637880> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9634360> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b96371a0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9637100> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b96365c0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9636ca0> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9637740> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 16:33:20 16:33:20 cls = 16:33:20 func = . at 0x7f91b9cbe340> 16:33:20 when = 'setup' 16:33:20 reraise = (, ) 16:33:20 16:33:20 @classmethod 16:33:20 def from_call( 16:33:20 cls, 16:33:20 func: Callable[[], TResult], 16:33:20 when: Literal["collect", "setup", "call", "teardown"], 16:33:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:33:20 ) -> CallInfo[TResult]: 16:33:20 """Call func, wrapping the result in a CallInfo. 16:33:20 16:33:20 :param func: 16:33:20 The function to call. Called without arguments. 16:33:20 :type func: Callable[[], _pytest.runner.TResult] 16:33:20 :param when: 16:33:20 The phase in which the function is called. 16:33:20 :param reraise: 16:33:20 Exception or exceptions that shall propagate if raised by the 16:33:20 function, instead of being wrapped in the CallInfo. 16:33:20 """ 16:33:20 excinfo = None 16:33:20 instant = timing.Instant() 16:33:20 try: 16:33:20 > result: TResult | None = func() 16:33:20 ^^^^^^ 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:33:20 lambda: runtest_hook(item=item, **kwds), 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:33:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:33:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:33:20 yield 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:33:20 return (yield) 16:33:20 ^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:33:20 item.session._setupstate.setup(item) 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:33:20 col.setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:33:20 super().setup() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:33:20 self._request._fillfixtures() 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:33:20 item.funcargs[argname] = self.getfixturevalue(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:33:20 fixturedef = self._get_active_fixturedef(argname) 16:33:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:33:20 fixturedef.execute(request=subrequest) 16:33:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:33:20 16:33:20 self = 16:33:20 request = > 16:33:20 16:33:20 def execute(self, request: SubRequest) -> FixtureValue: 16:33:20 """Return the value of this fixture, executing it if not cached.""" 16:33:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:33:20 # This needs to be done before checking if we have a cached value, since 16:33:20 # if a dependent fixture has their cache invalidated, e.g. due to 16:33:20 # parametrization, they finalize themselves and fixtures depending on it 16:33:20 # (which will likely include this fixture) setting `self.cached_result = None`. 16:33:20 # See #4871 16:33:20 requested_fixtures_that_should_finalize_us = [] 16:33:20 for argname in self.argnames: 16:33:20 fixturedef = request._get_active_fixturedef(argname) 16:33:20 # Saves requested fixtures in a list so we later can add our finalizer 16:33:20 # to them, ensuring that if a requested fixture gets torn down we get torn 16:33:20 # down first. This is generally handled by SetupState, but still currently 16:33:20 # needed when this fixture is not parametrized but depends on a parametrized 16:33:20 # fixture. 16:33:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:33:20 16:33:20 # Check for (and return) cached value/exception. 16:33:20 if self.cached_result is not None: 16:33:20 request_cache_key = self.cache_key(request) 16:33:20 cache_key = self.cached_result[1] 16:33:20 try: 16:33:20 # Attempt to make a normal == check: this might fail for objects 16:33:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:33:20 cache_hit = bool(request_cache_key == cache_key) 16:33:20 except (ValueError, RuntimeError): 16:33:20 # If the comparison raises, use 'is' as fallback. 16:33:20 cache_hit = request_cache_key is cache_key 16:33:20 16:33:20 if cache_hit: 16:33:20 if self.cached_result[2] is not None: 16:33:20 exc, exc_tb = self.cached_result[2] 16:33:20 raise exc.with_traceback(exc_tb) 16:33:20 else: 16:33:20 return self.cached_result[0] 16:33:20 # We have a previous but differently parametrized fixture instance 16:33:20 # so we need to tear it down before creating a new one. 16:33:20 self.finish(request) 16:33:20 assert self.cached_result is None 16:33:20 16:33:20 # Add finalizer to requested fixtures we saved previously. 16:33:20 # We make sure to do this after checking for cached value to avoid 16:33:20 # adding our finalizer multiple times. (#12135) 16:33:20 finalizer = functools.partial(self.finish, request=request) 16:33:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:33:20 parent_fixture.addfinalizer(finalizer) 16:33:20 16:33:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:33:20 # which is executed last. 16:33:20 > assert not self._finalizers 16:33:20 ^^^^^^^^^^^^^^^^^^^^ 16:33:20 E AssertionError 16:33:20 16:33:20 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:33:20 =========================== short test summary info ============================ 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 16:33:20 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 16:33:20 35 errors in 106.85s (0:01:46) 16:33:20 tests71: FAIL ✖ in 1 minute 50.23 seconds 16:33:20 tests221: exit 1 (107.19 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 pid=5023 16:33:20 tests221: FAIL ✖ in 1 minute 53.71 seconds 16:33:20 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 16:33:27 tests_hybrid: freeze> python -m pip freeze --all 16:33:27 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:33:27 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid 16:33:27 using environment variables from ./karaf221.env 16:33:27 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 16:35:08 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:35:17 ==================================== ERRORS ==================================== 16:35:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 16:35:17 16:35:17 cls = 16:35:17 16:35:17 @classmethod 16:35:17 def setUpClass(cls): 16:35:17 > cls.processes = test_utils.start_tpce() 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 16:35:17 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 16:35:17 def start_tpce(): 16:35:17 if 'NO_ODL_STARTUP' in os.environ: 16:35:17 print('No OpenDaylight instance to start!') 16:35:17 return [] 16:35:17 print('starting OpenDaylight...') 16:35:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:35:17 process = start_lighty() 16:35:17 else: 16:35:17 process = start_karaf() 16:35:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:35:17 print('OpenDaylight started !') 16:35:17 else: 16:35:17 print('OpenDaylight failed to start !') 16:35:17 shutdown_process(process) 16:35:17 for pid in process_list: 16:35:17 shutdown_process(pid) 16:35:17 > sys.exit(1) 16:35:17 E SystemExit: 1 16:35:17 16:35:17 transportpce_tests/common/test_utils.py:232: SystemExit 16:35:17 ---------------------------- Captured stdout setup ----------------------------- 16:35:17 starting OpenDaylight... 16:35:17 starting KARAF (karaf221) TransportPCE build... 16:35:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:35:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 16:35:17 16:35:17 cls = 16:35:17 func = . at 0x7ff4159e63e0> 16:35:17 when = 'setup' 16:35:17 reraise = (, ) 16:35:17 16:35:17 @classmethod 16:35:17 def from_call( 16:35:17 cls, 16:35:17 func: Callable[[], TResult], 16:35:17 when: Literal["collect", "setup", "call", "teardown"], 16:35:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:17 ) -> CallInfo[TResult]: 16:35:17 """Call func, wrapping the result in a CallInfo. 16:35:17 16:35:17 :param func: 16:35:17 The function to call. Called without arguments. 16:35:17 :type func: Callable[[], _pytest.runner.TResult] 16:35:17 :param when: 16:35:17 The phase in which the function is called. 16:35:17 :param reraise: 16:35:17 Exception or exceptions that shall propagate if raised by the 16:35:17 function, instead of being wrapped in the CallInfo. 16:35:17 """ 16:35:17 excinfo = None 16:35:17 instant = timing.Instant() 16:35:17 try: 16:35:17 > result: TResult | None = func() 16:35:17 ^^^^^^ 16:35:17 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:17 lambda: runtest_hook(item=item, **kwds), 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:17 yield 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:17 return (yield) 16:35:17 ^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:17 item.session._setupstate.setup(item) 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:17 col.setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:17 super().setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:17 self._request._fillfixtures() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:17 fixturedef = self._get_active_fixturedef(argname) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:17 fixturedef.execute(request=subrequest) 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 16:35:17 self = 16:35:17 request = > 16:35:17 16:35:17 def execute(self, request: SubRequest) -> FixtureValue: 16:35:17 """Return the value of this fixture, executing it if not cached.""" 16:35:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:17 # This needs to be done before checking if we have a cached value, since 16:35:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:17 # parametrization, they finalize themselves and fixtures depending on it 16:35:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:17 # See #4871 16:35:17 requested_fixtures_that_should_finalize_us = [] 16:35:17 for argname in self.argnames: 16:35:17 fixturedef = request._get_active_fixturedef(argname) 16:35:17 # Saves requested fixtures in a list so we later can add our finalizer 16:35:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:17 # down first. This is generally handled by SetupState, but still currently 16:35:17 # needed when this fixture is not parametrized but depends on a parametrized 16:35:17 # fixture. 16:35:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:17 16:35:17 # Check for (and return) cached value/exception. 16:35:17 if self.cached_result is not None: 16:35:17 request_cache_key = self.cache_key(request) 16:35:17 cache_key = self.cached_result[1] 16:35:17 try: 16:35:17 # Attempt to make a normal == check: this might fail for objects 16:35:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:17 cache_hit = bool(request_cache_key == cache_key) 16:35:17 except (ValueError, RuntimeError): 16:35:17 # If the comparison raises, use 'is' as fallback. 16:35:17 cache_hit = request_cache_key is cache_key 16:35:17 16:35:17 if cache_hit: 16:35:17 if self.cached_result[2] is not None: 16:35:17 exc, exc_tb = self.cached_result[2] 16:35:17 raise exc.with_traceback(exc_tb) 16:35:17 else: 16:35:17 return self.cached_result[0] 16:35:17 # We have a previous but differently parametrized fixture instance 16:35:17 # so we need to tear it down before creating a new one. 16:35:17 self.finish(request) 16:35:17 assert self.cached_result is None 16:35:17 16:35:17 # Add finalizer to requested fixtures we saved previously. 16:35:17 # We make sure to do this after checking for cached value to avoid 16:35:17 # adding our finalizer multiple times. (#12135) 16:35:17 finalizer = functools.partial(self.finish, request=request) 16:35:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:17 parent_fixture.addfinalizer(finalizer) 16:35:17 16:35:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:17 # which is executed last. 16:35:17 > assert not self._finalizers 16:35:17 ^^^^^^^^^^^^^^^^^^^^ 16:35:17 E AssertionError 16:35:17 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 16:35:17 16:35:17 cls = 16:35:17 func = . at 0x7ff415a42ac0> 16:35:17 when = 'setup' 16:35:17 reraise = (, ) 16:35:17 16:35:17 @classmethod 16:35:17 def from_call( 16:35:17 cls, 16:35:17 func: Callable[[], TResult], 16:35:17 when: Literal["collect", "setup", "call", "teardown"], 16:35:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:17 ) -> CallInfo[TResult]: 16:35:17 """Call func, wrapping the result in a CallInfo. 16:35:17 16:35:17 :param func: 16:35:17 The function to call. Called without arguments. 16:35:17 :type func: Callable[[], _pytest.runner.TResult] 16:35:17 :param when: 16:35:17 The phase in which the function is called. 16:35:17 :param reraise: 16:35:17 Exception or exceptions that shall propagate if raised by the 16:35:17 function, instead of being wrapped in the CallInfo. 16:35:17 """ 16:35:17 excinfo = None 16:35:17 instant = timing.Instant() 16:35:17 try: 16:35:17 > result: TResult | None = func() 16:35:17 ^^^^^^ 16:35:17 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:17 lambda: runtest_hook(item=item, **kwds), 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:17 yield 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:17 return (yield) 16:35:17 ^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:17 item.session._setupstate.setup(item) 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:17 col.setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:17 super().setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:17 self._request._fillfixtures() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:17 fixturedef = self._get_active_fixturedef(argname) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:17 fixturedef.execute(request=subrequest) 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 16:35:17 self = 16:35:17 request = > 16:35:17 16:35:17 def execute(self, request: SubRequest) -> FixtureValue: 16:35:17 """Return the value of this fixture, executing it if not cached.""" 16:35:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:17 # This needs to be done before checking if we have a cached value, since 16:35:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:17 # parametrization, they finalize themselves and fixtures depending on it 16:35:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:17 # See #4871 16:35:17 requested_fixtures_that_should_finalize_us = [] 16:35:17 for argname in self.argnames: 16:35:17 fixturedef = request._get_active_fixturedef(argname) 16:35:17 # Saves requested fixtures in a list so we later can add our finalizer 16:35:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:17 # down first. This is generally handled by SetupState, but still currently 16:35:17 # needed when this fixture is not parametrized but depends on a parametrized 16:35:17 # fixture. 16:35:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:17 16:35:17 # Check for (and return) cached value/exception. 16:35:17 if self.cached_result is not None: 16:35:17 request_cache_key = self.cache_key(request) 16:35:17 cache_key = self.cached_result[1] 16:35:17 try: 16:35:17 # Attempt to make a normal == check: this might fail for objects 16:35:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:17 cache_hit = bool(request_cache_key == cache_key) 16:35:17 except (ValueError, RuntimeError): 16:35:17 # If the comparison raises, use 'is' as fallback. 16:35:17 cache_hit = request_cache_key is cache_key 16:35:17 16:35:17 if cache_hit: 16:35:17 if self.cached_result[2] is not None: 16:35:17 exc, exc_tb = self.cached_result[2] 16:35:17 raise exc.with_traceback(exc_tb) 16:35:17 else: 16:35:17 return self.cached_result[0] 16:35:17 # We have a previous but differently parametrized fixture instance 16:35:17 # so we need to tear it down before creating a new one. 16:35:17 self.finish(request) 16:35:17 assert self.cached_result is None 16:35:17 16:35:17 # Add finalizer to requested fixtures we saved previously. 16:35:17 # We make sure to do this after checking for cached value to avoid 16:35:17 # adding our finalizer multiple times. (#12135) 16:35:17 finalizer = functools.partial(self.finish, request=request) 16:35:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:17 parent_fixture.addfinalizer(finalizer) 16:35:17 16:35:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:17 # which is executed last. 16:35:17 > assert not self._finalizers 16:35:17 ^^^^^^^^^^^^^^^^^^^^ 16:35:17 E AssertionError 16:35:17 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 16:35:17 16:35:17 cls = 16:35:17 func = . at 0x7ff41715a7a0> 16:35:17 when = 'setup' 16:35:17 reraise = (, ) 16:35:17 16:35:17 @classmethod 16:35:17 def from_call( 16:35:17 cls, 16:35:17 func: Callable[[], TResult], 16:35:17 when: Literal["collect", "setup", "call", "teardown"], 16:35:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:17 ) -> CallInfo[TResult]: 16:35:17 """Call func, wrapping the result in a CallInfo. 16:35:17 16:35:17 :param func: 16:35:17 The function to call. Called without arguments. 16:35:17 :type func: Callable[[], _pytest.runner.TResult] 16:35:17 :param when: 16:35:17 The phase in which the function is called. 16:35:17 :param reraise: 16:35:17 Exception or exceptions that shall propagate if raised by the 16:35:17 function, instead of being wrapped in the CallInfo. 16:35:17 """ 16:35:17 excinfo = None 16:35:17 instant = timing.Instant() 16:35:17 try: 16:35:17 > result: TResult | None = func() 16:35:17 ^^^^^^ 16:35:17 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:17 lambda: runtest_hook(item=item, **kwds), 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:17 yield 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:17 return (yield) 16:35:17 ^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:17 item.session._setupstate.setup(item) 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:17 col.setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:17 super().setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:17 self._request._fillfixtures() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:17 fixturedef = self._get_active_fixturedef(argname) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:17 fixturedef.execute(request=subrequest) 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 16:35:17 self = 16:35:17 request = > 16:35:17 16:35:17 def execute(self, request: SubRequest) -> FixtureValue: 16:35:17 """Return the value of this fixture, executing it if not cached.""" 16:35:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:17 # This needs to be done before checking if we have a cached value, since 16:35:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:17 # parametrization, they finalize themselves and fixtures depending on it 16:35:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:17 # See #4871 16:35:17 requested_fixtures_that_should_finalize_us = [] 16:35:17 for argname in self.argnames: 16:35:17 fixturedef = request._get_active_fixturedef(argname) 16:35:17 # Saves requested fixtures in a list so we later can add our finalizer 16:35:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:17 # down first. This is generally handled by SetupState, but still currently 16:35:17 # needed when this fixture is not parametrized but depends on a parametrized 16:35:17 # fixture. 16:35:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:17 16:35:17 # Check for (and return) cached value/exception. 16:35:17 if self.cached_result is not None: 16:35:17 request_cache_key = self.cache_key(request) 16:35:17 cache_key = self.cached_result[1] 16:35:17 try: 16:35:17 # Attempt to make a normal == check: this might fail for objects 16:35:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:17 cache_hit = bool(request_cache_key == cache_key) 16:35:17 except (ValueError, RuntimeError): 16:35:17 # If the comparison raises, use 'is' as fallback. 16:35:17 cache_hit = request_cache_key is cache_key 16:35:17 16:35:17 if cache_hit: 16:35:17 if self.cached_result[2] is not None: 16:35:17 exc, exc_tb = self.cached_result[2] 16:35:17 raise exc.with_traceback(exc_tb) 16:35:17 else: 16:35:17 return self.cached_result[0] 16:35:17 # We have a previous but differently parametrized fixture instance 16:35:17 # so we need to tear it down before creating a new one. 16:35:17 self.finish(request) 16:35:17 assert self.cached_result is None 16:35:17 16:35:17 # Add finalizer to requested fixtures we saved previously. 16:35:17 # We make sure to do this after checking for cached value to avoid 16:35:17 # adding our finalizer multiple times. (#12135) 16:35:17 finalizer = functools.partial(self.finish, request=request) 16:35:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:17 parent_fixture.addfinalizer(finalizer) 16:35:17 16:35:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:17 # which is executed last. 16:35:17 > assert not self._finalizers 16:35:17 ^^^^^^^^^^^^^^^^^^^^ 16:35:17 E AssertionError 16:35:17 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 16:35:17 16:35:17 cls = 16:35:17 func = . at 0x7ff4159e7ba0> 16:35:17 when = 'setup' 16:35:17 reraise = (, ) 16:35:17 16:35:17 @classmethod 16:35:17 def from_call( 16:35:17 cls, 16:35:17 func: Callable[[], TResult], 16:35:17 when: Literal["collect", "setup", "call", "teardown"], 16:35:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:17 ) -> CallInfo[TResult]: 16:35:17 """Call func, wrapping the result in a CallInfo. 16:35:17 16:35:17 :param func: 16:35:17 The function to call. Called without arguments. 16:35:17 :type func: Callable[[], _pytest.runner.TResult] 16:35:17 :param when: 16:35:17 The phase in which the function is called. 16:35:17 :param reraise: 16:35:17 Exception or exceptions that shall propagate if raised by the 16:35:17 function, instead of being wrapped in the CallInfo. 16:35:17 """ 16:35:17 excinfo = None 16:35:17 instant = timing.Instant() 16:35:17 try: 16:35:17 > result: TResult | None = func() 16:35:17 ^^^^^^ 16:35:17 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:17 lambda: runtest_hook(item=item, **kwds), 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:17 yield 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:17 return (yield) 16:35:17 ^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:17 item.session._setupstate.setup(item) 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:17 col.setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:17 super().setup() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:17 self._request._fillfixtures() 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:17 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159e7f60> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159e7ba0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a423e0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4360> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff41809d8a0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159e7f60> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43420> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4040> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff41809d8a0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43880> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff41809d8a0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4220> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43880> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff41809d8a0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4220> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4220> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a40040> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a40040> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a42660> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a42de0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a42ca0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43d80> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a436a0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43c40> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43600> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43740> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43d80> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a42ca0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a40040> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43740> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a43880> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a42660> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a42b60> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a42de0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff4159a4400> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 16:35:18 16:35:18 cls = 16:35:18 func = . at 0x7ff415a423e0> 16:35:18 when = 'setup' 16:35:18 reraise = (, ) 16:35:18 16:35:18 @classmethod 16:35:18 def from_call( 16:35:18 cls, 16:35:18 func: Callable[[], TResult], 16:35:18 when: Literal["collect", "setup", "call", "teardown"], 16:35:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:35:18 ) -> CallInfo[TResult]: 16:35:18 """Call func, wrapping the result in a CallInfo. 16:35:18 16:35:18 :param func: 16:35:18 The function to call. Called without arguments. 16:35:18 :type func: Callable[[], _pytest.runner.TResult] 16:35:18 :param when: 16:35:18 The phase in which the function is called. 16:35:18 :param reraise: 16:35:18 Exception or exceptions that shall propagate if raised by the 16:35:18 function, instead of being wrapped in the CallInfo. 16:35:18 """ 16:35:18 excinfo = None 16:35:18 instant = timing.Instant() 16:35:18 try: 16:35:18 > result: TResult | None = func() 16:35:18 ^^^^^^ 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:35:18 lambda: runtest_hook(item=item, **kwds), 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:35:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:35:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:35:18 yield 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:35:18 return (yield) 16:35:18 ^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:35:18 item.session._setupstate.setup(item) 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:35:18 col.setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:35:18 super().setup() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:35:18 self._request._fillfixtures() 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:35:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:35:18 fixturedef = self._get_active_fixturedef(argname) 16:35:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:35:18 fixturedef.execute(request=subrequest) 16:35:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:35:18 16:35:18 self = 16:35:18 request = > 16:35:18 16:35:18 def execute(self, request: SubRequest) -> FixtureValue: 16:35:18 """Return the value of this fixture, executing it if not cached.""" 16:35:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:35:18 # This needs to be done before checking if we have a cached value, since 16:35:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:35:18 # parametrization, they finalize themselves and fixtures depending on it 16:35:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:35:18 # See #4871 16:35:18 requested_fixtures_that_should_finalize_us = [] 16:35:18 for argname in self.argnames: 16:35:18 fixturedef = request._get_active_fixturedef(argname) 16:35:18 # Saves requested fixtures in a list so we later can add our finalizer 16:35:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:35:18 # down first. This is generally handled by SetupState, but still currently 16:35:18 # needed when this fixture is not parametrized but depends on a parametrized 16:35:18 # fixture. 16:35:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:35:18 16:35:18 # Check for (and return) cached value/exception. 16:35:18 if self.cached_result is not None: 16:35:18 request_cache_key = self.cache_key(request) 16:35:18 cache_key = self.cached_result[1] 16:35:18 try: 16:35:18 # Attempt to make a normal == check: this might fail for objects 16:35:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:35:18 cache_hit = bool(request_cache_key == cache_key) 16:35:18 except (ValueError, RuntimeError): 16:35:18 # If the comparison raises, use 'is' as fallback. 16:35:18 cache_hit = request_cache_key is cache_key 16:35:18 16:35:18 if cache_hit: 16:35:18 if self.cached_result[2] is not None: 16:35:18 exc, exc_tb = self.cached_result[2] 16:35:18 raise exc.with_traceback(exc_tb) 16:35:18 else: 16:35:18 return self.cached_result[0] 16:35:18 # We have a previous but differently parametrized fixture instance 16:35:18 # so we need to tear it down before creating a new one. 16:35:18 self.finish(request) 16:35:18 assert self.cached_result is None 16:35:18 16:35:18 # Add finalizer to requested fixtures we saved previously. 16:35:18 # We make sure to do this after checking for cached value to avoid 16:35:18 # adding our finalizer multiple times. (#12135) 16:35:18 finalizer = functools.partial(self.finish, request=request) 16:35:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:35:18 parent_fixture.addfinalizer(finalizer) 16:35:18 16:35:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:35:18 # which is executed last. 16:35:18 > assert not self._finalizers 16:35:18 ^^^^^^^^^^^^^^^^^^^^ 16:35:18 E AssertionError 16:35:18 16:35:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:35:18 =========================== short test summary info ============================ 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 16:35:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 16:35:18 51 errors in 110.01s (0:01:50) 16:35:18 tests_hybrid: exit 1 (110.29 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid pid=5143 16:35:18 buildcontroller: FAIL code 1 (20.86=setup[8.98]+cmd[11.88] seconds) 16:35:18 sims: OK (14.10=setup[8.22]+cmd[5.88] seconds) 16:35:18 build_karaf_tests121: FAIL code 127 (16.73=setup[7.23]+cmd[9.51] seconds) 16:35:18 testsPCE: FAIL code 1 (174.79=setup[50.35]+cmd[124.44] seconds) 16:35:18 tests121: FAIL code 1 (112.28=setup[7.79]+cmd[104.49] seconds) 16:35:18 build_karaf_tests221: FAIL code 127 (16.69=setup[7.21]+cmd[9.48] seconds) 16:35:18 tests_tapi: FAIL code 1 (118.35=setup[7.75]+cmd[110.60] seconds) 16:35:18 tests221: FAIL code 1 (113.71=setup[6.52]+cmd[107.19] seconds) 16:35:18 build_karaf_tests71: FAIL code 127 (12.68=setup[7.07]+cmd[5.61] seconds) 16:35:18 tests71: FAIL code 1 (110.23=setup[7.59]+cmd[102.64] seconds) 16:35:18 build_karaf_tests190: FAIL code 127 (12.65=setup[7.23]+cmd[5.42] seconds) 16:35:18 tests190: FAIL code 1 (110.16=setup[7.80]+cmd[102.35] seconds) 16:35:18 tests_hybrid: FAIL code 1 (117.46=setup[7.17]+cmd[110.29] seconds) 16:35:18 buildlighty: FAIL code 9 (24.18=setup[7.92]+cmd[16.26] seconds) 16:35:18 docs: OK (19.19=setup[15.51]+cmd[3.67] seconds) 16:35:18 docs-linkcheck: OK (20.01=setup[15.20]+cmd[4.81] seconds) 16:35:18 checkbashisms: OK (3.48=setup[2.23]+cmd[0.01,0.04,1.21] seconds) 16:35:18 pre-commit: OK (70.66=setup[2.78]+cmd[0.00,0.00,57.31,10.55] seconds) 16:35:18 pylint: OK (32.08=setup[3.64]+cmd[28.44] seconds) 16:35:18 evaluation failed :( (575.64 seconds) 16:35:18 + tox_status=1 16:35:18 + echo '---> Completed tox runs' 16:35:18 ---> Completed tox runs 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/build_karaf_tests121/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=build_karaf_tests121 16:35:18 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests121 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/build_karaf_tests190/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=build_karaf_tests190 16:35:18 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests190 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/build_karaf_tests221/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=build_karaf_tests221 16:35:18 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests221 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/build_karaf_tests71/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=build_karaf_tests71 16:35:18 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests71 16:35:18 + for i in .tox/*/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 ++ echo .tox/buildcontroller/log 16:35:18 + tox_env=buildcontroller 16:35:18 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildcontroller 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/buildlighty/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=buildlighty 16:35:18 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildlighty 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/checkbashisms/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=checkbashisms 16:35:18 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/checkbashisms 16:35:18 + for i in .tox/*/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 ++ echo .tox/docs-linkcheck/log 16:35:18 + tox_env=docs-linkcheck 16:35:18 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs-linkcheck 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/docs/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=docs 16:35:18 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/pre-commit/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=pre-commit 16:35:18 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pre-commit 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/pylint/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=pylint 16:35:18 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pylint 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/sims/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=sims 16:35:18 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/sims 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/tests121/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=tests121 16:35:18 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests121 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/tests190/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=tests190 16:35:18 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests190 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/tests221/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=tests221 16:35:18 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests221 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/tests71/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=tests71 16:35:18 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests71 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/testsPCE/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=testsPCE 16:35:18 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/testsPCE 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/tests_hybrid/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=tests_hybrid 16:35:18 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_hybrid 16:35:18 + for i in .tox/*/log 16:35:18 ++ echo .tox/tests_tapi/log 16:35:18 ++ awk -F/ '{print $2}' 16:35:18 + tox_env=tests_tapi 16:35:18 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_tapi 16:35:18 + DOC_DIR=docs/_build/html 16:35:18 + [[ -d docs/_build/html ]] 16:35:18 + echo '---> Archiving generated docs' 16:35:18 ---> Archiving generated docs 16:35:18 + mv docs/_build/html /w/workspace/transportpce-tox-verify-chromium/archives/docs 16:35:18 + echo '---> tox-run.sh ends' 16:35:18 ---> tox-run.sh ends 16:35:18 + test 1 -eq 0 16:35:18 + exit 1 16:35:18 ++ '[' 1 = 1 ']' 16:35:18 ++ '[' -x /usr/bin/clear_console ']' 16:35:18 ++ /usr/bin/clear_console -q 16:35:18 Build step 'Execute shell' marked build as failure 16:35:18 $ ssh-agent -k 16:35:18 unset SSH_AUTH_SOCK; 16:35:18 unset SSH_AGENT_PID; 16:35:18 echo Agent pid 1557 killed; 16:35:18 [ssh-agent] Stopped. 16:35:18 [PostBuildScript] - [INFO] Executing post build scripts. 16:35:18 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins18269533887341078662.sh 16:35:18 ---> sysstat.sh 16:35:19 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins12887996941021992929.sh 16:35:19 ---> package-listing.sh 16:35:19 ++ facter osfamily 16:35:19 ++ tr '[:upper:]' '[:lower:]' 16:35:19 + OS_FAMILY=debian 16:35:19 + workspace=/w/workspace/transportpce-tox-verify-chromium 16:35:19 + START_PACKAGES=/tmp/packages_start.txt 16:35:19 + END_PACKAGES=/tmp/packages_end.txt 16:35:19 + DIFF_PACKAGES=/tmp/packages_diff.txt 16:35:19 + PACKAGES=/tmp/packages_start.txt 16:35:19 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 16:35:19 + PACKAGES=/tmp/packages_end.txt 16:35:19 + case "${OS_FAMILY}" in 16:35:19 + dpkg -l 16:35:19 + grep '^ii' 16:35:19 + '[' -f /tmp/packages_start.txt ']' 16:35:19 + '[' -f /tmp/packages_end.txt ']' 16:35:19 + diff /tmp/packages_start.txt /tmp/packages_end.txt 16:35:19 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 16:35:19 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/ 16:35:19 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-chromium/archives/ 16:35:19 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins7054670003804921491.sh 16:35:19 ---> capture-instance-metadata.sh 16:35:19 Setup pyenv: 16:35:19 system 16:35:19 3.8.20 16:35:19 3.9.20 16:35:19 3.10.15 16:35:19 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:35:19 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-Ros5 from file:/tmp/.os_lf_venv 16:35:19 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:35:21 lf-activate-venv(): INFO: Installing additional packages: lftools 16:35:37 lf-activate-venv(): INFO: Adding /tmp/venv-Ros5/bin to PATH 16:35:37 INFO: Running in OpenStack, capturing instance metadata 16:35:38 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins11569259750663981675.sh 16:35:38 provisioning config files... 16:35:42 Could not find credentials [logs] for transportpce-tox-verify-chromium #5 16:35:42 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-chromium@tmp/config17012677014254953190tmp 16:35:42 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 16:35:42 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 16:35:42 provisioning config files... 16:35:43 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 16:35:43 [EnvInject] - Injecting environment variables from a build step. 16:35:43 [EnvInject] - Injecting as environment variables the properties content 16:35:43 SERVER_ID=logs 16:35:43 16:35:43 [EnvInject] - Variables injected successfully. 16:35:43 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins5926425029684933979.sh 16:35:43 ---> create-netrc.sh 16:35:43 WARN: Log server credential not found. 16:35:43 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins4066548920050597576.sh 16:35:43 ---> python-tools-install.sh 16:35:43 Setup pyenv: 16:35:43 system 16:35:43 3.8.20 16:35:43 3.9.20 16:35:43 3.10.15 16:35:43 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:35:43 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-Ros5 from file:/tmp/.os_lf_venv 16:35:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:35:45 lf-activate-venv(): INFO: Installing additional packages: lftools 16:35:54 lf-activate-venv(): INFO: Adding /tmp/venv-Ros5/bin to PATH 16:35:54 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins9831401711503424550.sh 16:35:54 ---> uv-install.sh 16:35:54 uv 0.12.11 is already installed 16:35:54 uvx 0.12.11 (x86_64-unknown-linux-gnu) 16:35:54 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins5741520261428810905.sh 16:35:54 ---> sudo-logs.sh 16:35:54 Archiving 'sudo' log.. 16:35:54 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins13496272351748479086.sh 16:35:54 ---> job-cost.sh 16:35:54 INFO: Activating Python virtual environment... 16:35:54 Setup pyenv: 16:35:54 system 16:35:54 3.8.20 16:35:54 3.9.20 16:35:54 3.10.15 16:35:54 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:35:54 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-Ros5 from file:/tmp/.os_lf_venv 16:35:54 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:35:56 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 16:36:04 lf-activate-venv(): INFO: Adding /tmp/venv-Ros5/bin to PATH 16:36:04 INFO: No stack-cost file found 16:36:04 INFO: Instance uptime: 800s 16:36:04 INFO: Fetching instance metadata (attempt 1 of 3)... 16:36:04 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 16:36:06 INFO: Successfully fetched instance metadata 16:36:06 INFO: Instance type: v3-standard-4 16:36:06 INFO: Retrieving pricing info for: v3-standard-4 16:36:06 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 16:36:06 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=800 16:36:06 INFO: Successfully fetched Vexxhost pricing API 16:36:06 INFO: Retrieved cost: 0.11 16:36:06 INFO: Retrieved resource: v3-standard-4 16:36:06 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-chromium/archives/cost 16:36:06 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-chromium/archives/cost.csv 16:36:06 INFO: Successfully archived job cost data 16:36:06 DEBUG: Cost data: transportpce-tox-verify-chromium,5,2026-09-09 16:36:06,v3-standard-4,800,0.11,0.00,FAILURE 16:36:06 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins3166483723753800786.sh 16:36:06 ---> logs-deploy.sh 16:36:06 Setup pyenv: 16:36:06 system 16:36:06 3.8.20 16:36:06 3.9.20 16:36:06 3.10.15 16:36:06 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:36:06 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-Ros5 from file:/tmp/.os_lf_venv 16:36:06 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:36:08 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 16:36:17 lf-activate-venv(): INFO: Adding /tmp/venv-Ros5/bin to PATH 16:36:17 WARNING: Nexus logging server not set 16:36:17 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-chromium/5/ 16:36:17 INFO: archiving logs to S3 16:36:18 ---> uname -a: 16:36:18 Linux prd-ubuntu2204-docker-4c-16g-6407 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:36:18 16:36:18 16:36:18 ---> lscpu: 16:36:18 Architecture: x86_64 16:36:18 CPU op-mode(s): 32-bit, 64-bit 16:36:18 Address sizes: 40 bits physical, 48 bits virtual 16:36:18 Byte Order: Little Endian 16:36:18 CPU(s): 4 16:36:18 On-line CPU(s) list: 0-3 16:36:18 Vendor ID: AuthenticAMD 16:36:18 Model name: AMD EPYC-Rome Processor 16:36:18 CPU family: 23 16:36:18 Model: 49 16:36:18 Thread(s) per core: 1 16:36:18 Core(s) per socket: 1 16:36:18 Socket(s): 4 16:36:18 Stepping: 0 16:36:18 BogoMIPS: 5600.00 16:36:18 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:36:18 Virtualization: AMD-V 16:36:18 Hypervisor vendor: KVM 16:36:18 Virtualization type: full 16:36:18 L1d cache: 128 KiB (4 instances) 16:36:18 L1i cache: 128 KiB (4 instances) 16:36:18 L2 cache: 2 MiB (4 instances) 16:36:18 L3 cache: 64 MiB (4 instances) 16:36:18 NUMA node(s): 1 16:36:18 NUMA node0 CPU(s): 0-3 16:36:18 Vulnerability Gather data sampling: Not affected 16:36:18 Vulnerability Indirect target selection: Not affected 16:36:18 Vulnerability Itlb multihit: Not affected 16:36:18 Vulnerability L1tf: Not affected 16:36:18 Vulnerability Mds: Not affected 16:36:18 Vulnerability Meltdown: Not affected 16:36:18 Vulnerability Mmio stale data: Not affected 16:36:18 Vulnerability Reg file data sampling: Not affected 16:36:18 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 16:36:18 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 16:36:18 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 16:36:18 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 16:36:18 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 16:36:18 Vulnerability Srbds: Not affected 16:36:18 Vulnerability Tsa: Not affected 16:36:18 Vulnerability Tsx async abort: Not affected 16:36:18 Vulnerability Vmscape: Not affected 16:36:18 16:36:18 16:36:18 ---> nproc: 16:36:18 4 16:36:18 16:36:18 16:36:18 ---> df -h: 16:36:18 Filesystem Size Used Avail Use% Mounted on 16:36:18 tmpfs 1.6G 1.1M 1.6G 1% /run 16:36:18 /dev/vda1 78G 12G 67G 15% / 16:36:18 tmpfs 7.9G 0 7.9G 0% /dev/shm 16:36:18 tmpfs 5.0M 0 5.0M 0% /run/lock 16:36:18 /dev/vda15 105M 6.1M 99M 6% /boot/efi 16:36:18 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 16:36:18 16:36:18 16:36:18 ---> free -m: 16:36:18 total used free shared buff/cache available 16:36:18 Mem: 15989 709 9332 4 5947 14936 16:36:18 Swap: 1023 0 1023 16:36:18 16:36:18 16:36:18 ---> ip addr: 16:36:18 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 16:36:18 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 16:36:18 inet 127.0.0.1/8 scope host lo 16:36:18 valid_lft forever preferred_lft forever 16:36:18 inet6 ::1/128 scope host 16:36:18 valid_lft forever preferred_lft forever 16:36:18 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 16:36:18 link/ether fa:16:3e:a1:81:fd brd ff:ff:ff:ff:ff:ff 16:36:18 altname enp0s3 16:36:18 inet 10.30.170.19/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 16:36:18 valid_lft 85597sec preferred_lft 85597sec 16:36:18 inet6 fe80::f816:3eff:fea1:81fd/64 scope link 16:36:18 valid_lft forever preferred_lft forever 16:36:18 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 16:36:18 link/ether 7e:62:82:8d:77:5f brd ff:ff:ff:ff:ff:ff 16:36:18 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 16:36:18 valid_lft forever preferred_lft forever 16:36:18 inet6 fe80::7c62:82ff:fe8d:775f/64 scope link 16:36:18 valid_lft forever preferred_lft forever 16:36:18 16:36:18 16:36:18 ---> sar -b -r -n DEV: 16:36:18 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6407) 09/09/26 _x86_64_ (4 CPU) 16:36:18 16:36:18 16:23:00 LINUX RESTART (4 CPU) 16:36:18 16:36:18 16:36:18 ---> sar -P ALL: 16:36:18 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6407) 09/09/26 _x86_64_ (4 CPU) 16:36:18 16:36:18 16:23:00 LINUX RESTART (4 CPU) 16:36:18 16:36:18 16:36:18